public function register()
{
$configPath = __DIR__ . '/../config/elfinder.php';
$this->mergeConfigFrom($configPath, 'elfinder');
$this->publishes([$configPath => config_path('elfinder.php')], 'config');
$this->app['command.elfinder.publish'] = $this->app->share(function ($app) {
$publicPath = $app['path.public'];
return new Console\PublishCommand($app['files'], $publicPath);
});
$this->commands('command.elfinder.publish');
}