Self-Referencing Nested Resource
I'm failing to set up a Resource where Pages can have subpages (of the same class). Is that somehow possible using a Nested Resources ?
I've set up a parent and children relationship on the Page-Model.
Following the docs I've managed to display child records but so far without a nested breadcrumb as the resource can't reference itself as $parentResource.
Am I missing something? What would be the Filament way to do this?
3 Replies
What works:
Is there a way to reuse the "PageResource" as "SubPageResource"? I'm just wondering if theres a easier/better/less complex way...
sorry, I didn't understand the question. Isn't it a nested resource?
Currently I need a SubpageResource and a PageResource. I'm wondering if theres a more elegant way by just having a PageResource with some kind of recursive behaviour by reusing the class itself as parent...