Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanenko3 committed May 9, 2022
1 parent 700d56d commit 32a30ca
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ToolServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ class ToolServiceProvider extends ServiceProvider
*/
public function boot()
{
$this->publishes([__DIR__ . '/../config' => config_path()], 'nova-menu-collapsed-config');
if ($this->app->runningInConsole()) {
// Publish config
$this->publishes([
__DIR__ . '/../config/' => config_path(),
], 'config');
}

$this->mergeConfigFrom(
__DIR__ . '/../config/nova-menu-collapsed.php',
'nova-menu-collapsed',
'nova-menu-collapsed'
);
}

Expand Down

0 comments on commit 32a30ca

Please sign in to comment.