We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d538728 commit 4cc2058Copy full SHA for 4cc2058
src/Folklore/LaravelLocale/Routing/RouterLocalized.php
@@ -12,9 +12,10 @@ public function groupWithLocales()
12
return function ($callback, $action = []) {
13
$locales = config('locale.locales', [app()->getLocale()]);
14
foreach ($locales as $locale) {
15
- $this->prefix($locale)->group(
+ $this->group(
16
array_merge(
17
[
18
+ 'prefix' => $locale,
19
'locale' => $locale,
20
],
21
is_array($callback) ? $callback : $action
0 commit comments