0
如何在Route::group
上添加正則表達式?在正常的Route::verb
上,您最後添加了->where('segment', 'regex')
,但您如何在一個組中完成此操作?正則表達式在路由組上,如何?
,我想這樣的事情(不工作作爲->where()
上Route::group
無效):
Route::group(['prefix' => '{profileId}'], function(){
Route::get('/', [
'as' => 'profileShow',
'uses' => '[email protected]'
]);
Route::post('ny-anvandare', [
'as' => 'profileAccessNew',
'uses' => '[email protected]'
]);
})->where('profileId', '[0-9]+');