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 !! 


Blog Search
Tags
  • Sysaxiom (4)
  • Github (8)
  • Windows (1)
  • php (25)
  • General Tips (0)
  • GoogleMaps (2)
  • Google App Script (1)
  • Heroku (4)
  • Laravel Middleware (1)
  • xampp (1)
  • Terminal (1)
  • TechCrunch (1)
  • Ubuntu (3)
  • MySQL (2)
Side Widget
can put anything you want inside of these side widgets. They are easy to use, and feature the new Bootstrap 4 card containers!