Skip to content

Commit

Permalink
Merge pull request #24 from byigorv/master
Browse files Browse the repository at this point in the history
fix table in Integrations\Laravel\Connection for Laravel 6
  • Loading branch information
evsign authored Jan 20, 2020
2 parents f34f536 + b9306d8 commit a5d31a4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Integrations/Laravel/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,14 @@ public function query()
/**
* Begin a fluent query against a database table.
*
* @param string $table
* @param \Closure|Builder|string $table
* @param string|null $as
*
* @return \Tinderbox\ClickhouseBuilder\Integrations\Laravel\Builder
*/
public function table($table)
public function table($table, $as = null)
{
return $this->query()->from($table);
return $this->query()->from($table, $as);
}

/**
Expand Down

0 comments on commit a5d31a4

Please sign in to comment.