mardi 3 janvier 2017

Laravel - force logout of specific user by user id

I use laravel 5.2.

I want to know how i can force user to logout by id. I'm building panel admin with the option to dis-active specific user that are currently logged in to the web application

laravel give you the next option for Auth user

Auth::logout()

But i don't want to logout the Auth user. i'm the Auth user. I want to force logout a specific user by is id like when we login user with specific id

Auth::loginUsingId($id);

Their is a option like this?

Auth::logoutUsingId($id);

Thank!!!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire