-1

How to create logout functionlity in laravel. I want it to redirect to some other page instead of home page which is default in laravel. Thanks in advance.

1 Answers1

4

overrid this method in App/Http/Controllers/Auth/loginController

/**
 * The user has logged out of the application.
 *
 * @param  \Illuminate\Http\Request  $request
 * @return mixed
 */
protected function loggedOut(Request $request)
{
    return redirect('/anywhere');
}
Mehdi Daalvand
  • 631
  • 7
  • 14