public function constrainQuery(EloquentBuilder &$query, $relatedModel, $constraint)
    {
        $query->where($this->getOption('column'), '=', $constraint);
    }
public function constrainQuery(EloquentBuilder &$query, $relatedModel, $constraint)
    {
        $query->where($this->getOption('column'), '=', $constraint);
    }
public function constrainQuery ( EloquentBuilder & $ query , $ relatedModel , $ constraint ) { $ query -> where ( $ this -> getOption ( 'column' ) , '=' , $ constraint ) ; }
Constrains a query by a given set of constraints.

@param \Illuminate\Database\Eloquent\Builder $query
@param \Illuminate\Database\Eloquent\Model   $relatedModel
@param string                                $constraint
Constrains a query by a given set of constraints .