header('X-API-Key'); if (!$apiKey || $apiKey !== config('app.api_key')) { return ResponseJson::unauthorizeResponse('Invalid API Key', []); } return $next($request); } }