|
@@ -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;
|
|
|
}
|
|
|
|