Many To Many Relationships: Updating A Record On A Pivot Table

$user = App\User::find(1);

$user->roles()->updateExistingPivot($roleId, $attributes);

Many To Many Relationships: Updating A Record On A Pivot Table — Structure map

Clickable & Draggable!

Many To Many Relationships: Updating A Record On A Pivot Table — Related pages: