title: Check if input is from console
body: <p>I want to share a variable of my views with:</p>
  
  <pre><code>class AppServiceProvider extends ServiceProvider
  {
      /**
       * Bootstrap any application services.
       *
       * @return void
       */
      public function boot()
      {
          \Schema::defaultStringLength(191);
          $customers = Customer::get();
          \View::share('customers', $customers);
      }
  }
  </code></pre>
  
  <p>it works as expected, but when I want to migrate my tables via artisan it throws an error, that the table for <code>customers</code> was not found because it is checked BEFORE the migration starts. So I need something like</p>
  
  <pre><code>if(!artisan_request) {
      //request to laravel is via web and not artisan
  } 
  </code></pre>
  
  <p>But I haven't found anything in the documentation.</p>