Laravel Attach/Detach model from pivot depending on pivot extra field
Not sure how your relations are set so you might have to adjust this a little. but give it a try:
$managementUnit = ManagementUnit::find(1);$managementUnit->councils()->where('id', 1)->wherePivot('year', 2011)->detach(1);
In laravel 5.6 only worked with:
$managementUnit = ManagementUnit::find(1);$managementUnit->councils()->where('conuncils.id', 1)->wherePivot('year', 2011)->detach();