0
votes

But it's

| GET|HEAD | login | login | App\Http\Controllers\Auth\LoginController@showLoginForm | web,GlobalRequest,guest |

It seems to happens when the session expires, but I don't get why. if I refresh the page problem goes away. I think the problem is with the auth middleware.

enter image description here

enter image description here

enter image description here

1
try 'php artisan optimize:clear` - Christophe Hubert
Will try thanks, it's a kinda random issue tho, I won't be able the check if that fixed it or not. - Crasher
Sure, let us know - Christophe Hubert
because there is no route named /login ... sounds like you are passing a path to a route helper instead of the route name - lagbox
As @lagbox says, the key bit of data you haven't shown us is how did you get to see this error? Or, in standard SO form, show us your code. - Don't Panic

1 Answers

1
votes

Would seem like you have /login instead of login in your code where a route name is required instead of a path. Check any middleware you have assigned to the routes that are throwing this error, such as the auth middleware.

Also would be helpful to know what version of Laravel you are using.