Skip to content

Commit 6c5389c

Browse files
Remove $this->app->share call
Share no longer exists in Laravel 5.4.
1 parent a53c654 commit 6c5389c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/Flynsarmy/DbBladeCompiler/DbBladeCompilerServiceProvider.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public function register()
3636
{
3737
$config_path = __DIR__ . '/../../../config/db-blade-compiler.php';
3838
$this->mergeConfigFrom($config_path, 'db-blade-compiler');
39-
40-
$this->app['dbview'] = $this->app->share(function ($app) {
41-
return $app->make(DbView::class);
42-
});
39+
40+
$this->app->singleton(DbView::class);
41+
42+
$this->app->alias(DbView::class, 'dbview');
4343

4444
$this->app->bind(DbBladeCompiler::class, function($app) {
4545
$cache_path = storage_path('app/db-blade-compiler/views');

0 commit comments

Comments
 (0)