*/ public array $bindings = [ BillingExportRepository::class => EloquentBillingExportRepository::class, BillingQueries::class => EloquentBillingQueries::class, BilledRevenueQueries::class => EloquentBilledRevenueQueries::class, BillingJobs::class => JobsForBilling::class, BillingHours::class => HoursForBilling::class, BillingExpenses::class => ExpensesForBilling::class, BillingPrices::class => PricesForBilling::class, BillingCustomers::class => CustomersForBilling::class, ]; public function register(): void { // A customer with invoices cannot be removed. $this->app->tag([CustomerReferencesFromBilling::class], CustomerReferences::TAG); } public function boot(): void { $presentationPath = dirname(__DIR__, 2).'/Presentation'; Livewire::addNamespace('billing', viewPath: $presentationPath.'/Livewire'); if (! $this->app->routesAreCached()) { $this->loadRoutesFrom($presentationPath.'/Routes/web.php'); } // Management forms the billing material once a month (spec 12). Gate::define('billing.manage', fn (User $user): bool => $user->role->seesAllMoney()); } }