ILaravel yenza unxibelelwano kunye nesiseko sedatha kube lula kakhulu nge-Eloquent. Xa usebenza noBudlelwane obuThile , xa ubiza izinto eziguqukayo ezinamandla (ngoncedo lweendlela zobugqi ze-PHP), kuya kufuneka uqaphele ukuba iimeko zeemodeli azibonisi utshintsho olutsha, kodwa zigcinwa ngokusisigxina xa zibizwa okokuqala.
Kumzekelo olandelayo iziphatha ngendlela ebekulindelwe ngayo:
6d32588c32f080ef1896633f261e1e14
$ model-> col ihlala ibuyisa ixabiso elidala nasemva kotshintsho (kuba ixabiso lalilandwe kanye ngeModeli :: fumana (42) emva koko igcinwe). Ukuba ngoku udibanisa enye, itafile edityanisiweyo nge $ mod-> exhomekeke_table , unokulindela ukuba umnxeba wayo wesibini ubuyise ixabiso elitsha:
6d32588c32f080ef1896633f261e1e14
Le ayisiyiyo imeko ( $ exhomekeke_table = $ imodeli-> ixhomekeke_eetafile zokugcina iitafile ezixhomekeke kuzo). Ukufumana ixabiso langoku, umsebenzi ochaziweyo oxhomekekileyo_table () ubizwa:
6d32588c32f080ef1896633f261e1e14