service->check(); $status = $payload['ok'] ? Response::HTTP_OK : Response::HTTP_SERVICE_UNAVAILABLE; // CodeIgniter admin/API health returns a flat JSON body (no Laravel success envelope). return response()->json($payload, $status); } }