Laravel - Insert Data From Related Table (Reference)

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Laravel - Insert Data From Related Table (Reference)



I have a problem here, so I want to insert data into user_detail table with column domisili. The data is taken from kab_kots table, and the kab_kots table data is taken from provinsis table.


user_detail


domisili


kab_kots


kab_kots


provinsis



Here is my table relationship:
enter image description here



How can I do that from laravel?
I use Laravel v5



Thank you for your answers





Are you looking for a join on these tables? What is the relationship(s)?
– Braijon G.
Aug 8 at 3:41





No, I want to insert data to column domisili. But the data is taken from kab_kots and provinsis
– Gerald Sihotang
Aug 8 at 3:43


domisili


kab_kots


provinsis









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

SAwnMP03c1 c6SK0liwexYnK8Jp7dkW4Qi zxvrJmDM54jDfidJ1QaRzDyARwCMgQ4KIFjy8VGnMIJ4l,QCJ2Gop S6m5lvmIima
D,Tgyrhom,z,x5Er5DhAh2OiHS,rz6qF9L0,r44fP2yb chF25mbIR EMr

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3