Erwin.van.den.Berg
Problems adding plugin (Filament navigation)
When adding the Filament Navigation plugin and configuring it to use a new item Type. I receive an error message stating 'call to a member function connection() on null' my code is:
->plugin(FilamentNavigation::make()->itemType('Page', [
Select::make('post_id')
->options(Page::all()->pluck('title', 'id')->toArray())
]));
Anyone who knows what I do wrong?1 replies
Pre processing listed records of a resource
I have create a resource which is based on a Page model. I want to show the pages in their parent child hierarchy. I have found next solution to do so in regular Laravel. But can not find the correct way to do this so I can use it in a Filament list of resources. Optionally I want to allow the filament sorting options within the hierarchy sorting:
2 replies
Builder blocks with spatie media library field
I am using the builder component with a spatie media library field in it. The builder field is stored in a json column. When however using two or more of these blocks, they all get the same image. This is quite logic as the images are related to a model and collection. Is there a way to make this work? I already figured out that I could make it work using a related model for each block but I am wondering if there is also a solution when storing in the json column?
16 replies