title: Lumen Routing with arrays as arguments
body: <p>I'm trying to create a route in Lumen that takes in two arrays as arguments. So, as my route in <code>web.php</code> I have the following:</p>
  
  <pre><code>$router-&gt;get('matrix/mul/{m1}/{m2}', ['uses' =&gt; 'MatrixController@multiplyMatrix']);
  </code></pre>
  
  <p>Where m1 and m2 are supposed to be array 1 and array 2. Then in the controller I have following:</p>
  
  <pre><code>public function multiplyMatrix(array $m1, array $m2) {
  
      var_dump($m1);
      var_dump($m2);die;
  }
  </code></pre>
  
  <p>Very simple, I just want to make sure the values are getting there as arrays. But when I try to access the route through the browser with both <code>http://localhost:8000/matrix/mul/m1[0,1]/m2[2,3]</code> and <code>http://localhost:8000/matrix/mul/m1[]=0/m2[]=2</code> I get the same error: <code>Argument 1 passed to App\Http\Controllers\MatrixController::multiplyMatrix() must be of the type array, string given</code>.</p>
  
  <p>I know that my problem is probably in the way I'm building the url. Any idea on how can I make this work?</p>