debug: /lang-debug endpoint (temporary)
This commit is contained in:
@@ -342,3 +342,11 @@ Route::get('/sw.js', function () {
|
|||||||
});
|
});
|
||||||
JS, 200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'public, max-age=3600']);
|
JS, 200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'public, max-age=3600']);
|
||||||
});
|
});
|
||||||
|
Route::get('/lang-debug', function (\Illuminate\Http\Request $request) {
|
||||||
|
return response()->json([
|
||||||
|
'app_locale_cookie' => $request->cookie('app_locale'),
|
||||||
|
'session_locale' => $request->session()->get('locale'),
|
||||||
|
'app_getLocale' => app()->getLocale(),
|
||||||
|
'all_cookies' => array_keys($request->cookies->all()),
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user