title: Passing parameter to controller from route in laravel
body: <p><strong>THIS IS A QUESTION FOR LARAVEL 3</strong></p>
  
  <p>Given the following route</p>
  
  <pre><code>Route::get('groups/(:any)', array('as' =&gt; 'group', 'uses' =&gt; 'groups@show'));
  </code></pre>
  
  <p>And the URL I would like to use,</p>
  
  <pre><code>http://www.example.com/groups/1
  </code></pre>
  
  <p>I would like to be able to use the <code>(:any)</code> value in my controller.  </p>
  
  <p>My controller looks like </p>
  
  <pre><code>class Groups_Controller extends Base_Controller {
  
      public $restful = true;    
  
      public function get_show($groupID) {
          return 'I am group id ' . $groupID;
      }  
  
  
  }
  </code></pre>
  
  <p>How is this possible to do?  I have tried a few things including the following</p>
  
  <pre><code>Route::get('groups/(:any)', array('as' =&gt; 'group', 'uses' =&gt; 'groups@show((:1))'));
  </code></pre>
  
  <p>but it did not work. </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Anytime I try to pass in the arguments as show above i get a 404 error.</p>
  
  <p>Thanks for the help!</p>