FEATURE #1375: add logging for user edit and creating

This commit is contained in:
Michal Kváček
2016-01-29 00:22:46 +01:00
parent 5fabc08a99
commit 7054ce53b6
7 changed files with 141 additions and 1 deletions
+6
View File
@@ -13,6 +13,12 @@ class EventServiceProvider extends ServiceProvider
* @var array
*/
protected $listen = [
'App\Events\CreateNewUser' => [
'App\Listeners\LogCreatedUser',
],
'App\Events\EditUser' => [
'App\Listeners\LogEditUser',
],
// internal Laravel events - should work as auth.login and auth.logout, however it doesn't...
'Illuminate\Auth\Events\Login' => [
'App\Listeners\LogLogin'