0

ネストされたコントローラーを自動検出する最も簡単な方法は何ですか? お気に入り:

Route::controller('forms.*');

これは機能しますが、少しハックです:

Route::any('forms/(:any)/(:any)', function($entity_type, $id){
    return Controller::call('forms.' . $entity_type . '@index', array($id));
});

また、適切なネストされたコントローラー ルートはバックスラッシュ引数を受け入れません。これはバグですか、それとも機能ですか?

Route::controller('forms.user');
dan.com/forms/user/31 = 401
4

0 に答える 0