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

I think you can use http://laravel.com/docs/5.0/eloquent#model-events for this situation.

0

but this is only about Model event, not relation event.

0

I suggest you create the model events from creating, created, updating and updated. check which event is fired during the attach()/sync().

0

@Gwill you're right, there are no such events. Here's something you may use http://stackoverflow.com/questions/28925292/eloquent-attach-de...

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Gwill gwill Joined 21 Mar 2014

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.