Facing redirect loop when try to redirect a route through middleware in Laravel
I am trying to make a custom authentication system using Laravel 8. For this purpose, I want to check if the user exists in the session; when the user is not found, I want to redirect to a custom login…