rubenvanerk
rubenvanerk
FFilament
Created by rubenvanerk on 12/16/2023 in #❓┊help
Making system-wide changes to `->required()`
I have a system with some imported data. Some of these fields in the old data are empty, but required in the new system. This causes problems when editing one of these older entries. I want to allow admins to edit these entries anyway, something like this:
Input::make('title')
->required(fn () => ! auth()->user()->hasRole('admin'))
Input::make('title')
->required(fn () => ! auth()->user()->hasRole('admin'))
Now, this would be annoying to do for every single field I have. How can I make this change system-wide? Thanks!
11 replies
FFilament
Created by rubenvanerk on 8/20/2023 in #❓┊help
Filtering a group of chart widgets on a resource page
I have a couple of chart widgets added to a resource view page using the getFooterWidgets() method. Now I would like to filter these widgets at the same time with 1 single form. Is there currently a way to do this or can anyone point me in the right direction? Thanks!
2 replies
FFilament
Created by rubenvanerk on 5/4/2023 in #❓┊help
Refreshing parent page after an action in a relation table
I have an action in a relation table that may update the parent record. I want to refresh the parent page's actions so those changes are reflected. How can i do that?
3 replies
FFilament
Created by rubenvanerk on 5/4/2023 in #❓┊help
How to set the record url on a resource table
When using the Table builder, we can set the record url using getTableRecordUrlUsing() (https://filamentphp.com/docs/2.x/tables/getting-started#clickable-rows) How can I set this value in a resource? It goes to the edit page by default, but I'd like to change that.
6 replies