0
目前我使用我的自定義級別的看法此路由格式:如果你注意到,我使用的是一個全球性的「CUSTOMER_ID」和我的子頁面我用Laravel全球航線ID
Route::group(['prefix' => 'customers/{customer_id}'], function(){
Route::group(['prefix' => 'orders'], function(){
Route::get('/', 'controllers\EndUser\Accounting\[email protected]');
Route::get('/{id}', 'controllers\EndUser\Accounting\[email protected]');
});
});
一個' ID'。我需要將'customer_id'傳遞給控制器中的每個控制器和每個函數,那麼執行此操作的最簡單方法是什麼?
看起來不錯戴夫,我想這是最好的方法,我只是想確保。 – Stephen