Skip to content

Commit aadf408

Browse files
Ignore when "*" provided as locale
1 parent ec6ff2d commit aadf408

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Middleware.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ class Middleware
1717
*/
1818
public function handle($request, Closure $next)
1919
{
20-
if ($locale = $this->parseHttpLocale($request)) {
20+
$locale = $this->parseHttpLocale($request);
21+
22+
if ($locale && $locale !== '*') {
2123
app()->setLocale($locale);
2224
}
2325

0 commit comments

Comments
 (0)