title: Laravel: how do I pass a value from a form to a controller?
body: <p>I have a form: </p>
  
  <pre><code>{ Form::open(array('action' =&gt; 'RatesController@postUserRate', $client-&gt;id)) }}
      {{ Form::text('rate', '', array('placeholder' =&gt; 'Enter new custom client rate...')) }}
      {{ Form::submit('Submit', array('class' =&gt; 'btn btn-primary')) }}
  {{ Form::close() }}
  </code></pre>
  
  <p>How do I pass my $client->id value through the form to my controller method?</p>
  
  <p>I currently have a controller method that looks like this:</p>
  
  <pre><code>public function postUserRate($id)
  {
      $currentUser = User::find(Sentry::getUser()-&gt;id);
      $userRate = DB::table('users_rates')-&gt;where('user_id', $currentUser-&gt;id)-&gt;where('client_id', $id)-&gt;pluck('rate');
  
      if(is_null($userRate))
      {
      ...
      }else{
      ....
      }
  }
  </code></pre>
  
  <p>And the error log says "Missing argument 1 for RatesController::postUserRate()"</p>
  
  <p>Any ideas on how to pass this $client->id into my controller so I can use it as I want to above?</p>