Skip to content

Commit

Permalink
merge config from register method instead if boot
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-aliraqi committed Sep 18, 2020
1 parent b7d8a57 commit 762d413
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Providers/LocalesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class LocalesServiceProvider extends ServiceProvider
*/
public function boot()
{
$this->mergeConfigFrom(__DIR__.'/../../config/locales.php', 'locales');

$this->publishes([
__DIR__.'/../../config/locales.php' => config_path('locales.php'),
], 'locales:config');
Expand All @@ -32,6 +30,8 @@ public function boot()
*/
public function register()
{
$this->mergeConfigFrom(__DIR__.'/../../config/locales.php', 'locales');

$this->app->singleton('laraeast.locales', function ($app) {
return new LocalesBuilder($app);
});
Expand Down

0 comments on commit 762d413

Please sign in to comment.