Redirect to custom URL after session Timeout in Laravel 8
Hello,
I want to redirect to custom the URL after the authentication user session Timeout or for the guest users if they put the dashboard path directly on address bar.
For now the default path is /login if the authenticate user session expired or guest user put the path of dashboard or auth-path.
I want to redirect to just / or suppose own custom login page like /admin/login. I set false to the default login router web.php as well.
@SilenceBringer Could you please explain, how to "create you own Authenticate middleware" and how to use (define) it. My basic need is to display a page that displays a message that the user has been logged out due to inactivity instead of displaying the 'login' page