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 fff66e2 commit 9212a00Copy full SHA for 9212a00
src/Middleware.php
@@ -26,7 +26,7 @@ public function handle($request, Closure $next)
26
27
private function parseHttpLocale(Request $request): string
28
{
29
- $list = explode(',', $request->server('HTTP_ACCEPT_LANGUAGE'));
+ $list = explode(',', $request->server('HTTP_ACCEPT_LANGUAGE', ''));
30
31
$locales = Collection::make($list)
32
->map(function ($locale) {
0 commit comments