vendredi 21 août 2015

updateExistingPivot how do you use it?

3-Way Pivot table: user_id, report_id, question_id

Need to update the user_ids related to a report. question_ids stay the same.

$users = User::find($ids);
$report = Report::with('user')->find($id);

Clearly, WHAT do i need to do. If i should use updateExistingPivot(), HOW??? Please no links to L docs they did not help. If you can just explain it simply and clearly, abs NO assumptions that would tremendously help!



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1NrsLQy
via IFTTT

Aucun commentaire:

Enregistrer un commentaire