Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
<?php
declare(strict_types=1);
namespace App\Providers;
use App\Listeners\LogStaffLogin;
use App\Models\User;
use App\Observers\UserObserver;
use Illuminate\Auth\Events\Login;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;
class EventServiceProvider extends ServiceProvider
{
/**
* The event to listener mappings for the application.
*
* @var array<class-string, array<int, class-string>>
*/
#[\Override]
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
];
#[\Override]
protected $observers = [
User::class => [UserObserver::class],
];
public function boot(): void
{
Event::listen(Login::class, LogStaffLogin::class);
}
/**
* Determine if events and listeners should be automatically discovered.
*/
#[\Override]
public function shouldDiscoverEvents(): bool
{
return false;
}
}