Route::any('/{module}/{class}/{action}', function($module, $class, $action) {
$ctrl = \App::make("\\App\\Http\\Controllers\\" . $module . "\\" . $class . "Controller");
return \App::call([$ctrl, $action]);
});
Route::any('/{module}/{class}/{action}', function($module, $class, $action) {
$ctrl = \App::make("\\App\\Http\\Controllers\\" . $module . "\\" . $class . "Controller");
return \App::call([$ctrl, $action]);
});
转载于:https://www.cnblogs.com/lobtao/articles/8408893.html