Skip to content

Commit

Permalink
Allow publishing of block config alone
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Dec 21, 2015
1 parent 152d330 commit a17c34c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Providers/BlockServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ public function register()
$this->registerFacade();
}

public function boot()
{
$this->mergeConfigFrom(__DIR__ . '/../Config/config.php', 'asgard.block.config');
$this->publishes([__DIR__ . '/../Config/config.php' => config_path('asgard.block.config' . '.php'), ], 'config');
}

/**
* Get the services provided by the provider.
* @return array
Expand Down

0 comments on commit a17c34c

Please sign in to comment.