From what "law" of transformers is the following equation for a practical transformer derived?
The "law of transformers" is actually Faraday's Law of induction
A current through a primary inductor will produce a magnetic flux (\$\phi\$) within a region according to Ampere's Law and the self-inductance associated with the inductor.
The voltage (\$V_{L_P}\$) across the primary inductance (\$L_P\$) forms according to Faraday's Law of Induction. The voltage (\$V_P)\$ across the inductor will be the sum of \$V_{L_P}\$ and the voltage across the RC parasitics.
$$V_{L_P}=-N_P\frac{d\phi_P}{dt}\tag{1}$$
A second inductor is brought close to the first so that it encounters a portion (k) of the flux from the primary inductor. The voltage across the secondary inductance will be:$$V_{L_S}=-N_S\frac{d\phi_S}{dt}$$
The secondary flux will be \$\phi_S=k\phi_P\$ so:
$$V_{L_S}=-kN_S\frac{d\phi_P}{dt}\tag{2}$$
The ratio of equation 2 to equation 1 yields the familiar transformer equation.
$$\frac{V_{L_S}}{V_{L_P}}=\frac{-kN_S\frac{d\phi_P}{dt}}{-N_P\frac{d\phi_P}{dt}}=\frac{kN_S}{N_P}$$
Reforming and letting \$a=\frac{N_P}{N_S}\$ reproduces the OP's equation if \$k=1\$ which is almost true for power transformers.
$$V_{L_S}=\frac{kV_{L_P}}{a}$$
Notice that this result is true for ideal and real transformers. The coupling constant, k, allows leakage flux to be included in Faraday's description.
This is not a model but derived directly from a "Law" as was requested.
The model in Peter Green's answer (+1) can be obtained from this result as a starting point and electronic analysis.