Hook to execute some code after Create or Update on the Form without the Model Observer
I have 2 admin panels and both a panels use the same model. I need to execute a set of code after the record is created or updated. If I use an observer, it applies to both the admin panels and I don't want that. How do I go about implementing this? Is there some sort of a hook like
afterSave
like with Actions (https://filamentphp.com/docs/3.x/actions/prebuilt-actions/create#lifecycle-hooks) for Forms to help achieve that?0 Replies