title: How do I route to a controller action when I'm in a routing closure in Laravel 5.2
body: <p>If I type <code>domain/something/someaction/10</code> I will catch this with the following routing rule:</p>
  
  <pre><code>Route::get('/{resource}/someaction/{id}', function($resource,$id){
      //do something
  });
  </code></pre>
  
  <p>Now, inside this closure I want to forward this request to a controller's action. But it could be anything, for instance:</p>
  
  <pre><code>$controller_name = transformThisResource($resource).'Controller';
  $controller = new $controller_name;
  $controller-&gt;someaction($id);
  </code></pre>
  
  <p>The particular problem I am having is that there are around 30 controllers in this project and 3 tasks performed by 3 actions in each of of them behave exactly the same. With a functionality such as the one described above I would need only 3 rules in my routes file.</p>