title: how to Abort/exit/stop/terminate in laravel console command using code
body: <p>Let's say I'm coding a command. How would I stop it completely in the middle of it running?</p>
  
  <p>Example:</p>
  
  <pre><code>public function handle()
  {
      if (!$this-&gt;good_times) {
          $this-&gt;error('Bad times');
          $this-&gt;exit();
      }
  
      // continue command stuff
  }
  </code></pre>
  
  <p>I have tried:</p>
  
  <pre><code>throw new RuntimeException('Bad times');
  </code></pre>
  
  <p>But that dumps a bunch of ugliness in the terminal.</p>