FEATURE #1367: add log of login and logout

This commit is contained in:
Michal Kváček
2016-01-29 00:20:40 +01:00
parent 859d3ce753
commit 5fabc08a99
7 changed files with 172 additions and 3 deletions
+6 -2
View File
@@ -13,8 +13,12 @@ class EventServiceProvider extends ServiceProvider
* @var array
*/
protected $listen = [
'App\Events\SomeEvent' => [
'App\Listeners\EventListener',
// internal Laravel events - should work as auth.login and auth.logout, however it doesn't...
'Illuminate\Auth\Events\Login' => [
'App\Listeners\LogLogin'
],
'Illuminate\Auth\Events\Logout' => [
'App\Listeners\LogLogout'
],
];