Answer the question
In order to leave comments, you need to log in
How to implement adding to the database in Laravel without reloading the page?
I'm not strong in php and laravel, so please explain, not very difficult, how can I implement such functionality?
All inputs of this form are displayed using foreach. It is necessary that the page does not reload when you click on the "Delete" and "Add" buttons and, accordingly, that rows are added and deleted to the database.
Answer the question
In order to leave comments, you need to log in
create routes, post, get. And handle ajax.
Create a route
.post('/post');
Customer.
$.ajax({'url':'/post/','type':'post'});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question