mercredi 13 mai 2020

Invoke custom functionality on save/update/delete of a record on any database table

I want to invoke some functionality on save/update/delete of a record on every database table.

Don't want to use events because that will only work with eloquent and not schema builder. Whatever is the approach(eloquent and schema builder) when a record is saved/update/delete on any object, I need to invoke some business logic.

Any inputs how can I do that?

Only option that I can think of is overriding the standard methods? Is that even suggested?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire