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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community