Is there a way to add multiple prefix in a single route group in Laravel?
Route::group(['prefix' => 'prefix'], function (){
Route::get('hello', 'HelloController@sayHello');
});
I have tried adding using pipe-
Route::group(['prefix' => 'prefix1|prefix2'], function (){
Route::get('hello', 'HelloController@sayHello');
});
Also tried using array-
Route::group(['prefix' => ['prefix1', 'prefix2']], function (){
Route::get('hello', 'HelloController@sayHello');
});
But no luck. Is there really any way to do that?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire