Laravel - Insert Data From Related Table (Reference)

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.

Popular posts from this blog

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

Dynamically update html content plain JS

How to determine optimal route across keyboard