execute function in resource from edit
Hi, in PfcResource.php i have a static function:
I want to execute it when the record is in edit mode: how??
2 Replies
I think
afterStateHydrated
is what you are looking for: https://filamentphp.com/docs/2.x/forms/advanced#hydrationor you can setup an event (Livewire has an init-event which is fired, after a component has finished loading):
https://filamentphp.com/docs/2.x/forms/advanced#using-form-events