*/ public array $bindings = [ ServiceUnitRepository::class => EloquentServiceUnitRepository::class, ServiceRepository::class => EloquentServiceRepository::class, WorkTypeRepository::class => EloquentWorkTypeRepository::class, CatalogQueries::class => EloquentCatalogQueries::class, ]; public function boot(): void { $presentationPath = dirname(__DIR__, 2).'/Presentation'; Livewire::addNamespace('catalog', viewPath: $presentationPath.'/Livewire'); if (! $this->app->routesAreCached()) { $this->loadRoutesFrom($presentationPath.'/Routes/web.php'); } // Catalog data (pohjatiedot) is managed by admins and management. Gate::define('catalog.manage', fn (User $user): bool => in_array($user->role, [Role::Admin, Role::Management], true)); } }