From b9306d80837df69a1d0c02f466a918e842095337 Mon Sep 17 00:00:00 2001 From: Igor Bychkov Date: Sun, 19 Jan 2020 14:10:30 +0300 Subject: [PATCH] fix table in Integrations\Laravel\Connection for Laravel 6 --- src/Integrations/Laravel/Connection.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } /**