Initial commit

This commit is contained in:
Ronald Huynen
2026-03-23 21:37:59 +01:00
commit 2547717edb
2193 changed files with 972171 additions and 0 deletions

View File

@@ -0,0 +1,77 @@
<?php
namespace App\Providers;
use App\Events\Auth\RegisteredByAdmin;
use App\Events\ProfileSwitchEvent;
use App\Events\ProfileVerified;
use App\Listeners\Auth\SendAdminCreatedVerificationNotification;
use App\Listeners\LogProfileSwitch;
use App\Listeners\LoginSuccessful;
use App\Listeners\ReactionCreatedListener;
use App\Listeners\ReactionRemovedListener;
use App\Listeners\SendEmailNewMessage;
use App\Listeners\UpdateProfileEmailVerifiedAt;
use Cog\Laravel\Love\Reaction\Events\ReactionHasBeenAdded;
use Cog\Laravel\Love\Reaction\Events\ReactionHasBeenRemoved;
use Illuminate\Auth\Events\Login;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array<class-string, array<int, class-string>>
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
RegisteredByAdmin::class => [
SendAdminCreatedVerificationNotification::class,
],
Login::class => [
LoginSuccessful::class
],
ReactionHasBeenAdded::class => [
ReactionCreatedListener::class
],
ReactionHasBeenRemoved::class => [
ReactionRemovedListener::class
],
'Illuminate\Auth\Events\Logout' => [
'App\Listeners\HandleUserLogout',
],
// Log the date and ip of the profile that is switched to:
// When the ProfileSwitchEvent triggers the LogProfileSwitch listens
ProfileSwitchEvent::class => [
LogProfileSwitch::class,
],
// Email verification of profile models (organization's, banks, admins etc)
ProfileVerified::class => [
UpdateProfileEmailVerifiedAt::class,
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
//
}
}