FilamentF
Filament3y ago
Noor

disable Table use only Form

hay I have a question can I disable table later or not... because I was using a resource with edit create and view and now I have been told to use only form .... so Can I disable table now? I know we can use the simple resource but i think now too late for that already done with the code
Solution
You need the index key in the getPages() method, you cannot remove it. What you can do is route it to another page.

See if this works for you:
public static function getPages(): array
{
    return [
      'index' => Pages\CreateInspection::route('/'),
      'view' => Pages\ViewInspection::route('/{record}'),
      'edit' => Pages\EditInspection::route('/{record}/edit'),
    ];
}
Was this page helpful?