Change The Redirect URL When Logging Out of Laravel

We have already seen how we can change the login redirect location in Laravel. In this post, I will show you how you can change the default redirect location while logging out of your Laravel application.

Quick Tip: Using Laravel Blade with AngularJS

To change default logout URL in Laravel 5, add the following line of code to your AuthController.php file.

protected $redirectAfterLogout = 'auth/login';

This will set the redirect location to auth/login i.e. login page. You can repalce auth/login with your own URL.

0 Comments

Leave a Comment.