Basic Laravel 4 Routing
问题 I would like to call a controller with parameters with this kind of configuration: Route::pattern('d', '[0-9]+'); Route::get('/{a}/{b}/{c}/{d}', function($a, $b, $c, $d) { // CALL A METHOD OF A CONTROLLER WITH PARAMETERS }); 回答1: Just call the controller method like this: Route::get('/{a}/{b}/{c}/{d}', 'AnyController@itsMethod'); And in the controller: class AnyController extends BaseController { //... public function itsMethod($a, $b, $c, $d) { ///proceed your params } //... } Laravel passes