F
Filament12mo 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
toeknee12mo 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
giroOP12mo ago
I ask myself.
after(function ($record) {
dispatch(new ComarcaSync($record));
}),
after(function ($record) {
dispatch(new ComarcaSync($record));
}),
`
Want results from more Discord servers?
Add your server