mardi 23 octobre 2018

Laravel default auth register how can i insert data into two different table

I am new to laravel and i want to insert the data into two different tables using one form submission. Example i want to insert the user's account info into "tbl_users" (e.g. Email, Password) and the user's info will be inserted into "tbl_client" (e.g. Name,Bday,Address).By the way i am just using the laravel default auth register (User.php, RegisterController.php). Is there is a safest way to do that ?.


User.php enter image description here


RegisterController.php enter image description here

enter image description here




Aucun commentaire:

Enregistrer un commentaire