title: Laravel 5 pass data from controller to command
body: <p>I am trying to pass an array from my controller to my command. See code below </p>
  
  <pre><code>Queue::push(new SendReminderPush(),array('data' =&gt; $data));
  </code></pre>
  
  <p>But when I call the command I always get an exception.</p>
  
  <p>Missing argument 1 for App\Commands\SendReminderPush::handle()</p>
  
  <p>This is my handle function in the command class:</p>
  
  <pre><code>public function handle($data){
     foreach($data as $d){
      do something
     }
  }
  </code></pre>
  
  <p>Please help me. What am I doing wrong?</p>