Illuminate\Database\Query\Builder::cursor PHP Method

cursor() public method

Get a generator for the given query.
public cursor ( ) : Generator
return Generator
    public function cursor()
    {
        if (is_null($this->columns)) {
            $this->columns = ['*'];
        }
        return $this->connection->cursor($this->toSql(), $this->getBindings(), !$this->useWritePdo);
    }