Skip to content

Commit

Permalink
Fix config not being published
Browse files Browse the repository at this point in the history
  • Loading branch information
sietse85 committed May 30, 2022
1 parent 46b086e commit b5d235e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/FieldServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public function boot(): void
*/
protected function routes()
{
$a = 'foo' . 'bar';


$b = 'foobar';

if ($this->app->routesAreCached()) {
return;
}
Expand All @@ -40,13 +45,20 @@ protected function routes()
->prefix('nova-vendor/sietse85/nova-button')
->group(__DIR__.'/../routes/api.php');
}

/**
* Register any application services.
*
* @return void
*/
public function register()
{
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__ . '/../config/' => config_path(),
], 'config');
}

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

0 comments on commit b5d235e

Please sign in to comment.