title: Laravel 5 Dynamic Controller Routing
body: <p>I have routing at Laravel 5.2 like this:</p>
  
  <pre><code>Route::group( [ 'prefix' =&gt; 'users/{hash}/addresses', 'as' =&gt; 'admin.addresses.' ], function () {
      Route::get( 'getdata', [ 'as' =&gt; 'getdata', 'uses' =&gt; 'AddressController@getData' ] );
      Route::get( 'create', [ 'as' =&gt; 'create', 'uses' =&gt; 'AddressController@create' ] );
      Route::post( 'create', [ 'as' =&gt; 'store', 'uses' =&gt; 'AddressController@store' ] );
  } );
  </code></pre>
  
  <p>How to set my action controller name on my route group declaration?</p>
  
  <p>it's suppose like this:</p>
  
  <pre><code>Route::group( [ 'prefix' =&gt; 'users/{hash}/addresses', 'as' =&gt; 'admin.addresses.', 'controller' =&gt; 'AddressController' ], function () {
      Route::get( 'getdata', [ 'as' =&gt; 'getdata', 'uses' =&gt; 'getData' ] );
      Route::get( 'create', [ 'as' =&gt; 'create', 'uses' =&gt; 'create' ] );
      Route::post( 'create', [ 'as' =&gt; 'store', 'uses' =&gt; 'store' ] );
  } );
  </code></pre>