Skip to content

Commit 4cc2058

Browse files
committed
Fix with group prefix
1 parent d538728 commit 4cc2058

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Folklore/LaravelLocale/Routing/RouterLocalized.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ public function groupWithLocales()
1212
return function ($callback, $action = []) {
1313
$locales = config('locale.locales', [app()->getLocale()]);
1414
foreach ($locales as $locale) {
15-
$this->prefix($locale)->group(
15+
$this->group(
1616
array_merge(
1717
[
18+
'prefix' => $locale,
1819
'locale' => $locale,
1920
],
2021
is_array($callback) ? $callback : $action

0 commit comments

Comments
 (0)