vendredi 5 août 2016

Trying to logout particular user from Admin System: Laravel 5.2.37

I have following code in the below mentioned file.

vendor\laravel\framework\src\Illuminate\Auth\SessionGuard.php

public function logoutAnotherUser($myuser) {
    if (isset($this->events)) {
        $this->refreshRememberToken($myuser);
        $this->events->fire(new Events\Logout($myuser));
    }
}

I have session table. I am following this link : http://ift.tt/1S5PR10 Session table contains user_id column. I am trying to set this column value to null for a particular user by passing the particular User's Model instance to above function parameter.

I am successfully able to update Last Activity column and Payload column value but user_id is not turning to null.

Did I miss anything in above code?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire