In Laravel 10, I’ve noticed that routes with a name that start with ‘api.’ are automatically under the ‘api’ middleware group defined in the Kernel.php file.
I need to make an API route but I don’t want to link it to the ‘api’ middleware group.
Is there a way to undo this link?
I’ve tried to change the name of the route I’m trying to make, and it didn’t get registered under the ‘api’ middleware group. However, whatever I do to the group, it doesn’t do anything and I didn’t find anyone mentioning this phenomena.