src/Database/Queries/AbilitiesForModel.php
protected function modelAbilityConstraint(Model $model, $strict)
    {
        return function ($query) use ($model, $strict) {
            $query->where("{$this->table}.entity_type", $model->getMorphClass());

            $query->where($this->abilitySubqueryConstraint($model, $strict));
        };
    }
protected function modelAbilityConstraint(Model $model, $strict)
    {
        return function ($query) use ($model, $strict) {
            $query->where("{$this->table}.entity_type", $model->getMorphClass());

            $query->where($this->abilitySubqueryConstraint($model, $strict));
        };
    }
protected function modelAbilityConstraint ( Model $ model , $ strict ) { return function ( $ query ) use ( $ model , $ strict ) { $ query -> where ( "{$this->table}.entity_type" , $ model -> getMorphClass ( ) ) ; $ query -> where ( $ this -> abilitySubqueryConstraint ( $ model , $ strict ) ) ; } ; }
Get the constraint for regular model abilities.

@param  \Illuminate\Database\Eloquent\Model  $model
@param  bool  $strict
@return \Closure
Get the constraint for regular model abilities .