diff --git a/laravel/database/grammar.php b/laravel/database/grammar.php index e47fb360..b301ac30 100644 --- a/laravel/database/grammar.php +++ b/laravel/database/grammar.php @@ -35,6 +35,11 @@ public function __construct(Connection $connection) */ public function wrap_table($table) { + if ($table instanceof Expression) + { + return $this->wrap($table); + } + $prefix = ''; // Tables may be prefixed with a string. This allows developers to