Rinvex\Repository\Repositories\BaseRepository::where PHP Method

where() public method

Add a basic where clause to the query.
public where ( string $attribute, string $operator = null, mixed $value = null, string $boolean = 'and' )
$attribute string
$operator string
$value mixed
$boolean string
    public function where($attribute, $operator = null, $value = null, $boolean = 'and')
    {
        // The last `$boolean` expression is intentional to fix list() & array_pad() results
        $this->where[] = [$attribute, $operator, $value, $boolean ?: 'and'];
        return $this;
    }