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