Support the ongoing development of Laravel.io →
Input Database Eloquent
Last updated 2 years 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

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.