title: Calling laravel artisan command from console
body: <p>I am trying to teach myself Laravel command so that later I use it for scheduling them. This is my kernel file:</p>
  
  <pre><code>    namespace App\Console;
  
      use Illuminate\Console\Scheduling\Schedule;
      use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  
      class Kernel extends ConsoleKernel
      {
          /**
           * The Artisan commands provided by your application.
           *
           * @var array
           */
          protected $commands = [
              //
              'App\Console\Commands\FooCommand',      
          ];
  
          /**
           * Define the application's command schedule.
           *
           * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
           * @return void
           */
          protected function schedule(Schedule $schedule)
          {
              // $schedule-&gt;command('inspire')
              //          -&gt;hourly();
              $schedule-&gt;command('App\Console\Commands\FooCommand')-&gt;hourly();
          }
  
          /**
           * Register the Closure based commands for the application.
           *
           * @return void
           */
          protected function commands()
          {
              require base_path('routes/console.php');
          }
      }
  </code></pre>
  
  <p>And this is the command file inside \App\Console\Commands</p>
  
  <pre><code>namespace App\Console\Commands;
  
  use Illuminate\Console\Command;
  
  class FooCommand extends Command
  {
      /**
       * The name and signature of the console command.
       *
       * @var string
       */
      protected $signature = 'command:name';
  
      /**
       * The console command description.
       *
       * @var string
       */
      protected $description = 'Command description';
  
      /**
       * Create a new command instance.
       *
       * @return void
       */
      public function __construct()
      {
          parent::__construct();
      }
  
      /**
       * Execute the console command.
       *
       * @return mixed
       */
      public function handle()
      {
          //
      }
  
      public function fire()
      {
  
          $this-&gt;info('Test has fired.');
      }   
  }
  </code></pre>
  
  <p><strong>I want to test the FooCommand command. How do it call this command from shell so that the result is "Test has fired."?</strong></p>