Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

logout in laravel 8

#route
Route::get('logout', 'AppHttpControllersAuthLoginController@logout');

#controller
use Auth;
public function logout(Request $request) {
  Auth::logout();
  return redirect('/login');
}

#
 
PREVIOUS NEXT
Tagged: #logout #laravel
ADD COMMENT
Topic
Name
6+7 =