29 lines
562 B
PHP
29 lines
562 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\Support\Facades\Event;
|
|
use Illuminate\Auth\Events\Login;
|
|
use App\Listeners\UpdateLastLoginTime;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
// Register event listeners
|
|
Event::listen(Login::class, UpdateLastLoginTime::class);
|
|
}
|
|
}
|