Support the ongoing development of Laravel.io →
CleverCookie

CleverCookie

Joined 2 Jul 2014

Statistics

Threads 0
Replies 25
Solutions 1
Articles 0

clevercookie has not posted any threads yet

replied 11 years ago

Proper chaining for my Pivot table to execute Pivot Update

Sorry, I'm confused. I can't tell what you are referring to. Are you speaking of the item_id that is...

0 Likes
replied 11 years ago

Proper chaining for my Pivot table to execute Pivot Update

Then instead of calling ->get(); use ->first(); unless you want to update more than one items...

0 Likes
replied 11 years ago

Proper chaining for my Pivot table to execute Pivot Update

What line? What part of the code is throwing this? Are you able to access the pivot tables values at...

0 Likes
replied 11 years ago

Proper chaining for my Pivot table to execute Pivot Update

Try this: $update=Item::find($item_id); $update_imei=$update->workArea()->where('imei','=','3...

0 Likes
replied 11 years ago

Loop thru results special way

Or you can do this, which is the approach I use. $first = true; foreach($items as $item) { if($...

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.

© 2026 Laravel.io - All rights reserved.