The subcritical Turing instability is studied in two classes of models for laser-driven nonlinear optical cavities. In the first class of models, the nonlinearity is purely absorptive, with arbitrary intensity-dependent losses. In the second class, the refractive index is real and is an arbitrary function of the intra-cavity intensity. Through a weakly nonlinear analysis, a Ginzburg-Landau equation with quintic nonlinearity is derived. Thus, the Maxwell curve, which marks the existence of localized patterns in parameter space, is determined. In the particular case of the Lugiato-Lefever model, the analysis is continued to seventh order, yielding a refined formula for the Maxwell curve and the theoretical curve is compared with recent numerical simulation by Gomilà, Firth, and Scroggie [Physica D 227, 70 (2007).]