src/Conductors/SyncsRolesAndAbilities.php
public function detach(array $ids, BelongsToMany $relation)
    {
        if (empty($ids)) {
            return;
        }

        $this->newPivotQuery($relation)
             ->whereIn($this->getRelatedPivotKeyName($relation), $ids)
             ->delete();
    }
public function detach(array $ids, BelongsToMany $relation)
    {
        if (empty($ids)) {
            return;
        }

        $this->newPivotQuery($relation)
             ->whereIn($this->getRelatedPivotKeyName($relation), $ids)
             ->delete();
    }
public function detach ( array $ ids , BelongsToMany $ relation ) { if ( empty ( $ ids ) ) { return ; } $ this -> newPivotQuery ( $ relation ) -> whereIn ( $ this -> getRelatedPivotKeyName ( $ relation ) , $ ids ) -> delete ( ) ; }
Detach the records with the given IDs from the relationship.

@param  array  $ids
@param  \Illuminate\Database\Eloquent\Relations\BelongsToMany  $relation
@return void
Detach the records with the given IDs from the relationship .