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:Jump to 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:
```php
public static function getPages(): array...7 Replies
Maybe this is possible but I think it would be even simpler to create a custom page and add a custom form in it.
But how does it work if you only have a form? You only have 1 item in your database table?
its just a form with one database table
so I want a resource open with just a form .. dont want a table records
I'm not sure you can just disable the List page without modifying other things in the resource... but maybe you could simply hide the page from your navigation?
And maybe pretend the page doesn't exist like this, in case someone tries the URL manually:
I don't know, just an idea
you mean disable ListPage class...??
because I've already done that
and it shows error = Class "App\Filament\Resources\InspectionResource\Pages\ListInspections" not found
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:
I mean, is this just a setting that maybe you should use that package for instead?
I do agree that a custom page makes more sense
tried that too it shows 404 server @saadeguilherme
@saadeguilherme but now it worked
Thanks everyone π