We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a53c654 + 6c5389c commit cfb38a9Copy full SHA for cfb38a9
src/Flynsarmy/DbBladeCompiler/DbBladeCompilerServiceProvider.php
@@ -36,10 +36,10 @@ public function register()
36
{
37
$config_path = __DIR__ . '/../../../config/db-blade-compiler.php';
38
$this->mergeConfigFrom($config_path, 'db-blade-compiler');
39
-
40
- $this->app['dbview'] = $this->app->share(function ($app) {
41
- return $app->make(DbView::class);
42
- });
+
+ $this->app->singleton(DbView::class);
+ $this->app->alias(DbView::class, 'dbview');
43
44
$this->app->bind(DbBladeCompiler::class, function($app) {
45
$cache_path = storage_path('app/db-blade-compiler/views');
0 commit comments