Any example of a multilevel category?
If I have a model structure like this.
Any example how can I manage this with filament (List/Create)?
Thanks.
Solution:Jump to solution
So if you are using parents and children, you would then select only the top level with a scope and apply that scope, or apply it to the getTableQuery(). Then you can build a relationship manager for the sub categories.
3 Replies
run:
php artisan make:filament-resource Categories --generate
or
php artisan make:filament-resource Categories --simple
if you want Modals.
Okey, this I know. But for default It will list all categories, but categories have parents and childrens. How manage this on list?
Solution
So if you are using parents and children, you would then select only the top level with a scope and apply that scope, or apply it to the getTableQuery(). Then you can build a relationship manager for the sub categories.