title: Laravel - How to run a function/controller every minute ? (Task Scheduling)
body: <p>I have a controller method that I want to run every minute. I read the <a href="https://laravel.com/docs/5.4/scheduling" rel="nofollow noreferrer">documentation</a> for Task Scheduling but it seems to document Commands only.</p>
  <p>Is there any way that I can use it to call a route/controller method/script every minute ?</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use App\Http\Controllers\Controller;
  use App\Acc;
  
  class ScriptController extends Controller
  {
      public function updateAcc()
      {
          $c = new Scripts\AccountA();
          $xoo = $c-&gt;getInfo();
          $z = json_decode($xoo,true);
  
          $data= new Acc();
          $data-&gt;price = $z[&quot;result&quot;];
          $data-&gt;save();
      }
  }
  </code></pre>
  <p>I need to use the <em>DB facades</em> and <em>external classes</em> etc...</p>