You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: