-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
Hi,
I am not sure if thats a bug or more an issue on my side.
I have an international project with some routes that include a locale prefix such as "/de". If I for instance visit the root of the project, I see the debugbar. If I visit the root with "/de" I don't see it.
I am sure there is something I missed - or is that the expected behavior?
Routes are created dynamically with a loop like....
<?php
foreach(app()->get('translatable.locales')->all() as $locale) {
$prefix = '';
$name = '';
if ($locale !== config('app.default_locale')) {
$prefix = $locale;
$name = $locale . '.';
}
Route::prefix($prefix)->name($name)->group(function() use ($locale) {
// Home (Root) route
Route::get('/', 'Front\HomeController@index')->name('home.index');
...
}