Sorry, I'm confused. I can't tell what you are referring to. Are you speaking of the item_id that is...
Then instead of calling ->get(); use ->first(); unless you want to update more than one items...
What line? What part of the code is throwing this? Are you able to access the pivot tables values at...
Try this: $update=Item::find($item_id); $update_imei=$update->workArea()->where('imei','=','3...
Or you can do this, which is the approach I use. $first = true; foreach($items as $item) { if($...
The Laravel portal for problem solving, knowledge sharing and community building.