format('U'); });*/ $this->app->bind('setting', SettingRepository::class); View::share('moduleSvc', app(ModuleService::class)); // Model observers Aircraft::observe(AircraftObserver::class); Airport::observe(AirportObserver::class); Journal::observe(JournalObserver::class); JournalTransaction::observe(JournalTransactionObserver::class); Flight::observe(FlightObserver::class); FlightField::observe(Sluggable::class); FlightFieldValue::observe(Sluggable::class); PirepField::observe(Sluggable::class); PirepFieldValue::observe(Sluggable::class); Setting::observe(SettingObserver::class); Subfleet::observe(SubfleetObserver::class); User::observe(UserObserver::class); } /** * Register any application services. */ public function register(): void { // Only load the IDE helper if it's included and enabled if (config('app.debug') === true) { /* @noinspection NestedPositiveIfStatementsInspection */ /* @noinspection PhpFullyQualifiedNameUsageInspection */ if (class_exists(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class)) { /* @noinspection PhpFullyQualifiedNameUsageInspection */ $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class); } if (config('app.debug_toolbar') === true) { Utils::enableDebugToolbar(); } else { Utils::disableDebugToolbar(); } } } }