title: Laravel 4 Form passing 2 parameters
body: <p>Currently i'm working on a project to manage my cost on fuel.
  Now i try to pass 2 parameters in a <code>Form::open()</code> which sadly doesn't work.
  The reason why i think i need to pass 2 parameters at once is because my url is <code>Sitename/car/{id}/tank/{id}</code>
  What am i doing wrong?</p>
  
  <p><em><strong>edit.blade.php</em></strong></p>
  
  <pre><code>Form::open(array('class' =&gt; 'form-horizontal', 'method' =&gt; 'put', 'action' =&gt; array('TankController@update', array($aid, $id))))
  </code></pre>
  
  <p>Problem Code</p>
  
  <pre><code>'action' =&gt; array('TankController@update', array($aid, $id)
  </code></pre>
  
  <p>-Results in the following error: </p>
  
  <p><code>Parameter "tank" for route "car.{id}.tank.update" must match "[^/]++" ("" given) to generate a corresponding URL.</code></p>
  
  <hr>
  
  <p><em><strong>TankController.php</em></strong></p>
  
  <pre><code>public function edit($id, $tid)
  {
      $tank = Tank::find($tid);
      if(!$tank) return Redirect::action('TankController@index');
      return View::make('Tank.edit', $tank)-&gt;with('aid', $id);
  }
  public function update($id, $tid)
  {
      $validation = Validator::make(Input::all(), Tank::$rules);
      if($validation-&gt;passes()){
          $tank = Tank::find($tid);
          $tank-&gt;kmstand          = Input::get('kmstand');
          $tank-&gt;volume           = Input::get('volume');
          $tank-&gt;prijstankbeurt   = Input::get('prijstankbeurt');
          $tank-&gt;datumtank        = Input::get('datumtank');
          $tank-&gt;save();
  
          return Redirect::action('TankController@index', $id)-&gt;with('success', 'Tankbeurt succesvol aangepast');
      } else return Redirect::action('TankController@edit', $id)-&gt;withErrors($validation);
  }
  </code></pre>
  
  <p><em><strong>Route.php</em></strong></p>
  
  <pre><code>Route::resource('car', 'CarController');
  Route::resource('car/{id}/tank', 'TankController');
  Route::controller('/', 'UserController');
  </code></pre>
  
  <p><strong>-Url Structure</strong>
  SITENAME/car/2/tank/2/edit</p>
  
  <p>I've also looked into the api documents but found nothing.
  <a href="http://laravel.com/api/source-class-Illuminate.Html.FormBuilder.html">http://laravel.com/api/source-class-Illuminate.Html.FormBuilder.html</a></p>
  
  <p>Thanks in advance</p>