diff --git a/src/ElfinderServiceProvider.php b/src/ElfinderServiceProvider.php index 52dd674..d678b2b 100644 --- a/src/ElfinderServiceProvider.php +++ b/src/ElfinderServiceProvider.php @@ -23,7 +23,7 @@ public function register() $this->mergeConfigFrom($configPath, 'elfinder'); $this->publishes([$configPath => config_path('elfinder.php')], 'config'); - $this->singleton('command.elfinder.publish', function($app) + $this->app->singleton('command.elfinder.publish', function($app) { $publicPath = $app['path.public']; return new Console\PublishCommand($app['files'], $publicPath);