Support the ongoing development of Laravel.io →

shoaibnawaz

Joined 22 Sep 2014

Statistics

Threads 2
Replies 1
Solutions 0
Articles 0

Updating hasMany items with ease

While updating an entity model needs to update a hasMany attribute with multiple items. $user->la...

0 Likes
1 Replies

Eloquent hasManyThrough relation and with a little customization.

Parent, Child and Tag are three models. Parent (id, other fileds ....) Child (id, parent_id, tag_id...

0 Likes
1 Replies
replied 9 years ago

Updating hasMany items with ease

Oh really it was so simple with the magic of Collection::lists() and array_diff $current = $user->...

0 Likes

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.