title: Laravel 4: Passing variable in route
body: <p>I am trying to do route controller and in my route file it looks something like this:</p>
  
  <pre><code>Route::get('/data', 'ProcessController@data');
  Route::get('/data2', 'ProcessController@data2');
  Route::get('/data3', 'ProcessController@data3');
  Route::get('/data4', 'ProcessController@data4');
  </code></pre>
  
  <p>As you can see the pattern there. How can I make everything into one line, so that I don't need to repeatedly assigning the route?</p>
  
  <p>Thank you.</p>