Commit ba661e57 authored by crynobone's avatar crynobone

Add 'laravel.auth: login' and 'laravel.auth: logout' events.

Signed-off-by: 's avatarcrynobone <crynobone@gmail.com>
parent 6140089e
......@@ -3,6 +3,7 @@
use Laravel\Str;
use Laravel\Cookie;
use Laravel\Config;
use Laravel\Event;
use Laravel\Session;
use Laravel\Crypter;
......@@ -112,6 +113,8 @@ abstract class Driver {
if ($remember) $this->remember($token);
Event::fire('laravel.auth: login');
return true;
}
......@@ -128,6 +131,8 @@ abstract class Driver {
Session::forget($this->token());
Event::fire('laravel.auth: logout');
$this->token = null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment