Support the ongoing development of Laravel.io →
Eloquent Database

we are trying to log the changes made to the models via ORM laravel 5.

There are default events which we are using to achieve the same like static::saving(), static::created() etc. But when i use insert in below way none of the ORM events are getting triggered.

Working Code: $myclass = new MyClass; $myclass->save($data);

Not working:

MyClass::insert()

Please assist guyz.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.

© 2025 Laravel.io - All rights reserved.