Skip to content

Commit

Permalink
Updating LocalizationServiceProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Apr 18, 2016
1 parent 98eb612 commit cb1bcbb
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions src/LocalizationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function boot()
parent::boot();

$this->publishConfig();
$this->registerViews();
$this->publishViews();
}

/**
Expand Down Expand Up @@ -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');
}
}

0 comments on commit cb1bcbb

Please sign in to comment.