Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 1 year ago.
0

Fire your own event after calling update or delete on a builder ?

These particular Eloquent events are only fired from an instance of a model. So outside of that its no longer an Eloquent Model you are dealing with. So an Eloquent Model event doesn't apply.

0

Not Eloquent events but QueryBuilder events.

Of course, I could fire my own events before/after update/delete, but it's exactly what I'm trying to avoid.

Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

thytanium thytanium Joined 7 Feb 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.