schema([ Card::make() ->schema([ TextInput::make('name')->required(), ]) ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('name')->searchable(), TextColumn::make('created_at'), ]) ->filters([ // Tables\Filters\TrashedFilter::make(), ]) ->actions([ Tables\Actions\EditAction::make(), Tables\Actions\DeleteAction::make(), Tables\Actions\ForceDeleteAction::make(), Tables\Actions\RestoreAction::make(), ]) ->bulkActions([ Tables\Actions\DeleteBulkAction::make(), Tables\Actions\ForceDeleteBulkAction::make(), Tables\Actions\RestoreBulkAction::make(), ]); } public static function getPages(): array { return [ 'index' => Pages\ManageCategories::route('/'), ]; } public static function getEloquentQuery(): Builder { return parent::getEloquentQuery() ->withoutGlobalScopes([ SoftDeletingScope::class, ]); } }