title: Laravel Run function from console command
body: <p>LARAVEL 5.2, just created the command named "HelloWorld" and here is the code: </p>
  
  <pre><code> &lt;?php
  
  namespace App\Console\Commands;
  
  use Illuminate\Console\Command;
  use App\Http\Controllers\HelloWorldController;
  
  class MakeImportsCommand extends Command
  {
      /**
       * The name and signature of the console command.
       *
       * @var string
       */
      protected $signature = 'helloworld';
  
      /**
       * The console command description.
       *
       * @var string
       */
      protected $description = 'Say Hello World Controller';
  
      /**
       * Create a new command instance.
       *
       * @return void
       */
      public function __construct()
      {
          parent::__construct();
      }
  
      /**
       * Execute the console command.
       *
       * @return mixed
       */
      public function handle()
      {
          return $this -&gt; helloWorld();
  
      }
  }
  </code></pre>
  
  <p>My controller <em>HelloWorldController.php</em> looks as below:</p>
  
  <pre><code>    &lt;?php
  
  namespace App\Http\Controllers;
  
  class HelloWorldController extends Controller
  {
      public function helloWorld() {
          echo 'Hello World from controller';
      }
  
  }
  </code></pre>
  
  <p>My Kernel.php has following commands so far: </p>
  
  <pre><code>protected $commands = [
          Commands\Inspire::class,
          Commands\HelloWorldCommand::class,
      ];
  </code></pre>
  
  <p>When I run the controller VIA Routing method it works, but I want to run this via Console command. Here is my command on console : php artisan helloworld . And I get the error : </p>
  
  <pre><code> [Symfony\Component\Debug\Exception\FatalErrorException]Call to undefined method App\Console\Commands\HelloWorldCommand::helloWorld()
  </code></pre>
  
  <p>My question is: Is there any way to call this function VIA command console? How? 
  Thank you in advance! </p>