How to group routes with locales (ex. /en or /es...)? #748
Unanswered
alexander-bet
asked this question in
Q&A
Replies: 1 comment
-
Hello, and welcome! I haven't done this but I think this might help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I like the Apiato but I'm just starting to learn it. So, I have a question about the localization routes. Without Apiato I did smth like that:
Route::prefix('{locale?}') ->middleware('localized') ->group(function() { Route::get('/', function () { return view('welcome'); }); });
But now with Apiato we should place each route in separate files in different containers... And is there way to group routes with locales without writing middleware and prefix in each sepatate file?
Beta Was this translation helpful? Give feedback.
All reactions