schema([ Forms\Components\TextInput::make('name') ->required() ->maxLength(255), Forms\Components\Textarea::make('description') ->maxLength(65535) ->columnSpanFull(), ]); } public static function table(Table $table): Table { return $table ->columns([ Tables\Columns\TextColumn::make('name') ->searchable(), Tables\Columns\TextColumn::make('products_count') ->counts('products') ->label('Products'), Tables\Columns\TextColumn::make('created_at') ->dateTime() ->sortable() ->toggleable(isToggledHiddenByDefault: true), ]) ->filters([ // ]) ->actions([ // ]) ->bulkActions([ // ]); } public static function getPages(): array { return [ 'index' => Pages\ManageCategories::route('/'), ]; } }