Jean Roumeau
Action button in View Resource to Show Create Popup based on Relationship Manager
This is an example code I presented. Organization is one of my models which loads the form schema on the getForm() method. You should pass your own resource form schema and model.
8 replies
Validate import before inserting records.
According to docs (https://filamentphp.com/docs/3.x/actions/prebuilt-actions/import#customizing-import-validation-messages) it also says that "the import system will automatically validate the CSV file before it is imported". But ot doesn't seem to work like this.
6 replies
Dont Reset Field
If you have enabled create and another, then the field will reset. If don't, the field will maintain for default redirect.
If the field is not mapped to any model value then it will display default value.
Any reason not to use ->relationship() on Select element?
6 replies
Action button in View Resource to Show Create Popup based on Relationship Manager
I don't think you need the url() method.
You could just add a Filament\Actions\CreateAction to the headerActions of the view page and load the form for the desired resource. Just remember to also add the model() method with the respective resource model class.
I did something similiar but not sure if this suits you:
8 replies
Elegant handling of 419 expiry
The JS Alert is all Livewire. See here:
https://livewire.laravel.com/docs/javascript#customizing-page-expiration-behavior
16 replies
Help with accessing a record in Filament relation manager
I think Filament completely removes the action logic when hidden.
See here https://filamentphp.com/docs/3.x/actions/trigger-button#authorization
16 replies