title: How can I run a php artisan command in the background from controller?
body: <p>I'm trying to figure out a way I can set a artisan command to run in the background when a user does an action, if I run the artisan call method the browser will just load untill it's done.</p>
  
  <p>What I want to do is would similar this to in the terminal:</p>
  
  <pre><code>php artisan fix &gt; /dev/null 2&gt;&amp;1 &amp;
  </code></pre>
  
  <p>But run it from the controller instead, is that possible?</p>
  
  <p>Btw. I know I could just setup a cronjob to run it, but I really want to run it from the controller.</p>