schema([ TextInput::make('title') ->label(__('Title')) ->required(), Select::make('documentation_category_id') ->relationship('category', 'title') ->searchable() ->preload(), MarkdownEditor::make('content') ->label(__('Content')) ->required() ->columnSpan(2), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('title') ->searchable() ->sortable(), TextColumn::make('category.title') ->searchable() ->sortable(), ]); } public static function getPages(): array { return [ 'index' => Pages\ListDocumentationItems::route('/'), 'create' => Pages\CreateDocumentationItem::route('/create'), 'edit' => Pages\EditDocumentationItem::route('/{record}/edit'), ]; } }