正在显示
1 个修改的文件
包含
6 行增加
和
4 行删除
| @@ -15,10 +15,12 @@ class ExceptionPushProvider extends ServiceProvider | @@ -15,10 +15,12 @@ class ExceptionPushProvider extends ServiceProvider | ||
| 15 | */ | 15 | */ |
| 16 | public function boot() | 16 | public function boot() |
| 17 | { | 17 | { |
| 18 | - $configPath = __DIR__.'/../publish/exception.push.php'; | ||
| 19 | - $this->publishes([ | ||
| 20 | - $configPath => config_path('exception.push.php') | ||
| 21 | - ], 'lackoxygen-exception-push'); | 18 | + if ($this->app->runningInConsole()) { |
| 19 | + $configPath = __DIR__.'/../publish/exception.push.php'; | ||
| 20 | + $this->publishes([ | ||
| 21 | + $configPath => config_path('exception.push.php') | ||
| 22 | + ], 'lackoxygen-exception-push'); | ||
| 23 | + } | ||
| 22 | } | 24 | } |
| 23 | 25 | ||
| 24 | 26 |
-
请 注册 或 登录 后发表评论