Middleware redirect will never complete.
I have created a middlware that redirects user based on if they are verified like this . and this is my middleware list in the panel provider However i face this error on the browser Firefox has detected that the server is redirecting the request for this address in a way that will never complete.. Any idea why ? tried to clear the cookies , caches but still the same .Tried also on another browser but still no success .
4 Replies
Any idea here please?
Maybe you need to check if you are in the
verify
page too, or else it will keep redirecting you?
@lodeki
BTW this is more of a laravel/php issue so you can ask there https://discord.com/invite/laravelAnd is my order of the middlewares in the provider okay.
Yes. Chester already pointed out the issue.