environment('production')) { return response('800', 200) ->header('Content-Type', 'text/plain'); } return $next($request); } $clientIp = $request->ip(); if (!in_array($clientIp, $allowedIps, true)) { // Wellnet Callback仕様: 異常時もHTTP 200 + 固定コードで応答 return response('800', 200) ->header('Content-Type', 'text/plain'); } return $next($request); } }