How to auth logout in laravel 5.2

1457694000000 php laravel

by Start Bootstrap


This is just a quick note on how to logout the user if he is using Auth in Laravel 5.2

public function getLogout() {

auth()->logout();

return redirect('admin')->with('status', 'Logged out Successfully');

}

Make usre that the user table has remember_token and updated_at coloumn ;)

 

Happy Coding !!