create user login activities

This commit is contained in:
Geriano
2022-07-29 20:14:58 +07:00
parent 0d77e4ba33
commit 96b732cb5f
7 changed files with 498 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Providers;
use Illuminate\Auth\Events\Login;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
@@ -18,6 +19,10 @@ class EventServiceProvider extends ServiceProvider
Registered::class => [
SendEmailVerificationNotification::class,
],
Login::class => [
\App\Listeners\SaveUserLoginIpBrowserAndPlatform::class,
],
];
/**