Hello, sorry if this is obvious I'm new to laravel and voyager.
I'm trying to use model-log to log (eh !) but I'm facing issue when using a custom controller with a save action on the model.
Ie :
Changing the model with Voyager bread -> works as expected
Changing the model with myCustomController() [..] $myModel->save() doesn't update model-log table.
I've tryed to dispatch events event(new BreadDataUpdated($dataType, $myModel)) but without success.
Could you point me to the right direction ?
Thanks.
OK everything is working fine, I wasn't saving the model, but updating it.
ie: update($query)
and this doesn't trigger save events.
Thanks for your work
Hello, sorry if this is obvious I'm new to laravel and voyager. I'm trying to use model-log to log (eh !) but I'm facing issue when using a custom controller with a save action on the model. Ie : Changing the model with Voyager bread -> works as expected Changing the model with myCustomController() [..] $myModel->save() doesn't update model-log table.
I've tryed to dispatch events event(new BreadDataUpdated($dataType, $myModel)) but without success. Could you point me to the right direction ? Thanks.