schema([ FileUpload::make('path') ->label(__('filament.resource.image.form.path')) ->required() ->image() ->directory('uploads'), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('path')->label(__('filament.resource.image.table.path'))->searchable()->sortable(), Tables\Columns\ImageColumn::make('path')->label(__('filament.resource.image.table.image')), ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]) ->emptyStateActions([ Tables\Actions\CreateAction::make(), ]); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListImages::route('/'), 'create' => Pages\CreateImage::route('/create'), 'edit' => Pages\EditImage::route('/{record}/edit'), ]; } }