F
Filament6mo ago
giro

AfterSave and AfterCreate on modal form

When you use a simple modal resource, and don't have EditRecord and CreateRecord class, how you call afterSave and AfterCreate hook function? Thanks.
2 Replies
toeknee
toeknee6mo ago
IDeally would you write a Laravel Observer or Event Watcher and run actions afterwards in my experience. But you could in theory add the actions manually to the modal and define them on the action
giro
giro6mo ago
I ask myself.
after(function ($record) {
dispatch(new ComarcaSync($record));
}),
after(function ($record) {
dispatch(new ComarcaSync($record));
}),
`