src/Database/Concerns/IsRole.php
public function scopeWhereAssignedTo($query, $model, array $keys = null)
    {
        (new RolesQuery)->constrainWhereAssignedTo($query, $model, $keys);
    }
public function scopeWhereAssignedTo($query, $model, array $keys = null)
    {
        (new RolesQuery)->constrainWhereAssignedTo($query, $model, $keys);
    }
public function scopeWhereAssignedTo ( $ query , $ model , array $ keys = null ) { ( new RolesQuery ) -> constrainWhereAssignedTo ( $ query , $ model , $ keys ) ; }
Constrain the given query to roles that were assigned to the given authorities.

@param  \Illuminate\Database\Eloquent\Builder  $query
@param  string|\Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection  $model
@param  array  $keys
@return void
Constrain the given query to roles that were assigned to the given authorities .