From cb1bcbb82f554aa863af4f0ce168df6cc5ace2eb Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Mon, 18 Apr 2016 14:31:22 +0100 Subject: [PATCH] Updating LocalizationServiceProvider --- src/LocalizationServiceProvider.php | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/LocalizationServiceProvider.php b/src/LocalizationServiceProvider.php index 3e5e565..4d7ab0b 100644 --- a/src/LocalizationServiceProvider.php +++ b/src/LocalizationServiceProvider.php @@ -67,7 +67,7 @@ public function boot() parent::boot(); $this->publishConfig(); - $this->registerViews(); + $this->publishViews(); } /** @@ -105,31 +105,4 @@ private function registerLocalization() Facades\Localization::class ); } - - /* ------------------------------------------------------------------------------------------------ - | Resources - | ------------------------------------------------------------------------------------------------ - */ - /** - * Publishes configs. - */ - private function publishConfig() - { - $this->publishes([ - $this->getConfigFile() => config_path("{$this->package}.php"), - ], 'config'); - } - - /** - * Register and published Views. - */ - private function registerViews() - { - $viewsPath = $this->getBasePath() . '/resources/views'; - - $this->loadViewsFrom($viewsPath, $this->package); - $this->publishes([ - $viewsPath => base_path('resources/views/vendor/' . $this->package), - ], 'views'); - } }