doesntHave('roles'); } public static function table(Table $table): Table { return CustomersTable::configure($table); } public static function infolist(Schema $schema): Schema { return CustomerInfolist::configure($schema); } public static function getPages(): array { return [ 'index' => ListCustomers::route('/'), 'view' => ViewCustomer::route('/{record}'), ]; } public static function canViewAny(): bool { return auth()->user()?->can('view_customers') ?? false; } }