[ SendExportReportEmail::class, ], ImportCompleted::class => [ SendImportReportEmail::class, ], UserWasPurged::class => [ RemoveUserFiles::class, ], ]; public function register(): void { $this->app->register(RelationshipServiceProvider::class); // Tell Laravel: "Whenever someone asks for GetSystemSettings, // give them the exact same object instance for the entire request." $this->app->singleton(GetSystemSettings::class, function ($app) { return new GetSystemSettings; }); } public function boot(): void { $this->registerEvents(); Carbon::macro('toUserTz', fn () => $this->copy() ->tz(config('app.display_timezone', 'UTC'))); } }