[ SendExportReportEmail::class, ], ImportCompleted::class => [ SendImportReportEmail::class, ], UserWasPurged::class => [ RemoveUserFiles::class, ] ]; public function register(): void { // 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; }); } /** @noinspection PhpInconsistentReturnPointsInspection */ public function boot(GetSystemSettings $getSystemSettings): void { View::composer(['components.layouts.*'], function ($view) use ($getSystemSettings) { $view->with('logo', $getSystemSettings->get(SystemSettingKey::WEB_LOGO)); $view->with('favicon', $getSystemSettings->get(SystemSettingKey::WEB_FAVICON)); }); Audit::creating(function (Audit $model) { if (empty($model->old_values) && empty($model->new_values)) { return false; } }); Carbon::macro('toUserTz', fn () => $this->copy() ->tz(config('app.display_timezone', 'UTC'))); } }