*/ public array $bindings = [ CustomerRepository::class => EloquentCustomerRepository::class, CustomerQueries::class => EloquentCustomerQueries::class, ]; public function boot(): void { $presentationPath = dirname(__DIR__, 2).'/Presentation'; Livewire::addNamespace('customers', viewPath: $presentationPath.'/Livewire'); if (! $this->app->routesAreCached()) { $this->loadRoutesFrom($presentationPath.'/Routes/web.php'); } // Subcontractors see only the customer jobs assigned to them, not the customer register. Gate::define('customers.use', fn (User $user): bool => $user->role !== Role::Subcontractor); } }