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 5ce0ce6 commit 8c03625Copy full SHA for 8c03625
src/Macros/LocalizedRoutesMacro.php
@@ -43,9 +43,11 @@ public static function register()
43
App::setLocale($locale);
44
45
// Prepend the locale to the route name
46
+ // and set a custom attribute so the middleware
47
+ // can find it to set the correct app locale.
48
$attributes = [
- 'as'=>"{$locale}.",
- 'localized-routes-locale'=>$locale
49
+ 'as' => "{$locale}.",
50
+ 'localized-routes-locale' => $locale
51
];
52
53
// Add a custom domain route group
0 commit comments