Skip to content

Commit

Permalink
fix table in Integrations\Laravel\Connection for Laravel 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Bychkov committed Jan 19, 2020
1 parent f34f536 commit b9306d8
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 b9306d8

Please sign in to comment.