schema([ TextInput::make('name') ->required() ->maxLength(255), TextInput::make('title') ->required() ->maxLength(255), Textarea::make('description') ->required() ->rows(5) ->maxLength(65535), FileUpload::make('image') ->image() ->directory('team-members') ->maxSize(2048) // 2MB ->required(), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('name') ->searchable() ->sortable(), TextColumn::make('title') ->searchable() ->sortable(), ImageColumn::make('image'), ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), Tables\Actions\DeleteAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListTeamMembers::route('/'), 'create' => Pages\CreateTeamMember::route('/create'), 'edit' => Pages\EditTeamMember::route('/{record}/edit'), ]; } }