add login_at to User

This commit is contained in:
2020-04-12 09:42:13 +02:00
parent 0a535c165d
commit 24d27a68ac
4 changed files with 61 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
namespace App\Providers;
use App\Events\UserLoggedIn;
use App\Listeners\UpdateUserMetaData;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
@@ -18,6 +20,9 @@ class EventServiceProvider extends ServiceProvider
Registered::class => [
SendEmailVerificationNotification::class,
],
\Illuminate\Auth\Events\Authenticated::class => [
'App\Listeners\UserLoginAttempt@handle'
],
];
/**