src/Schema/Directives/WhereDirective.php
public function handleBuilder($builder, $value)
    {
        // Allow users to overwrite the default "where" clause, e.g. "whereYear"
        $clause = $this->directiveArgValue('clause', 'where');

        return $builder->{$clause}(
            $this->directiveArgValue('key', $this->definitionNode->name->value),
            $operator = $this->directiveArgValue('operator', '='),
            $value
        );
    }
public function handleBuilder($builder, $value)
    {
        // Allow users to overwrite the default "where" clause, e.g. "whereYear"
        $clause = $this->directiveArgValue('clause', 'where');

        return $builder->{$clause}(
            $this->directiveArgValue('key', $this->definitionNode->name->value),
            $operator = $this->directiveArgValue('operator', '='),
            $value
        );
    }
public function handleBuilder ( $ builder , $ value ) { // Allow users to overwrite the default "where" clause, e.g. "whereYear" $ clause = $ this -> directiveArgValue ( 'clause' , 'where' ) ; return $ builder -> { $ clause } ( $ this -> directiveArgValue ( 'key' , $ this -> definitionNode -> name -> value ) , $ operator = $ this -> directiveArgValue ( 'operator' , '=' ) , $ value ) ; }
Add any "WHERE" clause to the builder.

@param  \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder  $builder
@param  mixed  $value
@return \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder
Add any WHERE clause to the builder .