Jack Sleight
Multiple edit pages for a single resource
I have a resource where I need two completely different edit pages. Whats the best way to approach this? I've already duplicated the edit page class, and I can see that there's a
getForms
method that returns the form from the resource class. Do I just override that to return a different form? Or is there a better way to do it?14 replies
Refresh page data from resource form action
I need to call
refreshFormData
(https://filamentphp.com/docs/3.x/panels/pages#refreshing-form-data) from an action within a resource form, but that method is on the page. How can I access the page component from the action method?21 replies
Custom grid column widths
Is this the best way to give a
Grid
component custom column widths, or have a missed something more official? The child *:
variant is required as the extra classes are applied to the wrapper not the element with grid
set.
1 replies
Passing an ID to a custom edit action
I'm trying to create an edit action on a custom page that allows me to edit a model directly from the page (rather than going to the normal resource page). It mostly works, but I'm running into problems passing the right model ID to the action as an argument. If I hard-code an ID it works perfectly.
124 replies