作者 竞泽

feat:boot pre env

@@ -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()