Skip to content

Commit

Permalink
Merge pull request #2377 from erikn69/patch-13
Browse files Browse the repository at this point in the history
Only offer publishing when running in console
  • Loading branch information
drbyte committed Mar 30, 2023
2 parents addbd4f + 905c176 commit e7f35ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PermissionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ protected function offerPublishing()
return;
}

if (! $this->app->runningInConsole()) {
return;
}

$this->publishes([
__DIR__.'/../config/permission.php' => config_path('permission.php'),
], 'permission-config');
Expand Down

0 comments on commit e7f35ea

Please sign in to comment.