Laravel Auth is a pretty and powerful feature. Mostly In each application, we have to need to implement logging and logout feature. in this article we will know , how to implement user log out functionality in Laravel .
Define Logout routes in web.php file inside the routes folder .
Route::get("logout" , "Logout@logout");
Define logout function Logout controller like below.
public function logout(){ Auth::logout(Auth::user()); return redirect('/login'); }