Skip to content
Advertisement

how to save new data and update data in a different table with laravel

How can i save a record new and update data in 2 different tables in laravel. I have perpustakaan table for to update. My second table is called peminjaman_buku for save new data. I hope you can help me, thank you very much

controller :

JavaScript

when I do the process there is no updated data or new data in the database

Advertisement

Answer

Change your modal code from this

JavaScript

To this

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement