lundi 1 avril 2019

MyClas::insert($data) not calling ORM save event?

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.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2I6XQMS
via IFTTT

Aucun commentaire:

Enregistrer un commentaire