diff --git a/src/Integrations/Laravel/Connection.php b/src/Integrations/Laravel/Connection.php index eb4570c..04b506b 100644 --- a/src/Integrations/Laravel/Connection.php +++ b/src/Integrations/Laravel/Connection.php @@ -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); } /**