Replace $request->get() with $request->attributes->get() throughout controllers and middleware for consistency and enhanced reliability.

This commit is contained in:
2026-07-15 22:35:55 +05:00
parent b35f04d220
commit b5258f840e
6 changed files with 20 additions and 20 deletions
@@ -10,7 +10,7 @@ final class IsWebsiteTranslations
{
public function handle(Request $request, \Closure $next): Response
{
$websiteTranslations = $request->get('websiteTranslations');
$websiteTranslations = $request->attributes->get('websiteTranslations');
if (\is_null($websiteTranslations)) {
\abort(Response::HTTP_NOT_FOUND);
}