Skip to content

Commit f8c6da7

Browse files
committed
Use app instance
1 parent adc53c7 commit f8c6da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelDebugBar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ protected function selectStorage(DebugBar $debugbar)
770770
switch ($driver) {
771771
case 'pdo':
772772
$connection = $config->get('laravel-debugbar::config.storage.connection');
773-
$table = \DB::getTablePrefix() . 'phpdebugbar';
773+
$table = $this->app['db']->getTablePrefix() . 'phpdebugbar';
774774
$pdo = $this->app['db']->connection($connection)->getPdo();
775775
$storage = new PdoStorage($pdo, $table);
776776
break;

0 commit comments

Comments
 (0)