/**
  * Resolve the current request.
  *
  * @return \Bugsnag\Request\RequestInterface
  */
 public function resolve()
 {
     if ($this->app->runningInConsole()) {
         return new NullRequest();
     }
     $request = $this->app->make(Request::class);
     return new LaravelRequest($request);
 }
 /**
  * Setup the migrations.
  *
  * @param \Illuminate\Contracts\Container\Container $app
  *
  * @return void
  */
 protected function setupMigrations(Application $app)
 {
     $source = realpath(__DIR__ . '/../database/migrations/');
     if ($app instanceof LaravelApplication && $app->runningInConsole()) {
         $this->publishes([$source => database_path('migrations')], 'migrations');
     }
 }
 /**
  * Setup the config.
  *
  * @param \Illuminate\Contracts\Container\Container $app
  *
  * @return void
  */
 protected function setupConfig(Application $app)
 {
     if ($app instanceof LaravelApplication && $app->runningInConsole()) {
         $this->publishes([__DIR__ . '/../../config/sms.php' => config_path('sms.php')]);
     } elseif ($app instanceof LumenApplication) {
         $app->configure('sms');
     }
 }
 /**
  * Setup the config.
  *
  * @param \Illuminate\Contracts\Container\Container $app
  */
 protected function setupConfig(Application $app)
 {
     $source = __DIR__ . '/config/gamp.php';
     if ($app instanceof LaravelApplication && $app->runningInConsole()) {
         $this->publishes([$source => config_path('gamp.php')]);
     } elseif ($app instanceof LumenApplication) {
         $app->configure('gamp');
     }
     $this->mergeConfigFrom($source, 'gamp');
 }
 /**
  * Setup the config.
  *
  * @param \Illuminate\Contracts\Container\Container $app
  *
  * @return void
  */
 protected function setupConfig(Container $app)
 {
     $source = realpath(__DIR__ . '/../config/bugsnag.php');
     if ($app instanceof LaravelApplication && $app->runningInConsole()) {
         $this->publishes([$source => config_path('bugsnag.php')]);
     } elseif ($app instanceof LumenApplication) {
         $app->configure('bugsnag');
     }
     $this->mergeConfigFrom($source, 'bugsnag');
 }