Skip to content

Commit 6c89465

Browse files
Set correct connection on Dumper class
1 parent 1d1b4c0 commit 6c89465

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/DumpServerServiceProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@ public function register()
4949
'source' => new SourceContextProvider('utf-8', base_path()),
5050
]);
5151

52-
$this->app->when(Dumper::class)->needs('$connection')->give($connection);
5352
$app = $this->app;
54-
55-
VarDumper::setHandler(function ($var) use ($app) {
56-
$app->make(Dumper::class)->dump($var);
53+
VarDumper::setHandler(function ($var) use ($app, $connection) {
54+
$app->makeWith(Dumper::class, ['connection' => $connection])->dump($var);
5755
});
5856
}
5957
}

0 commit comments

Comments
 (0)