M
M
miniven2016-03-21 17:31:07
HTML
miniven, 2016-03-21 17:31:07

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.
download?id=uxAn5pH16YfbDuLkhYrTNEks0OPR

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2016-03-21
@miniven

Ajax

S
Shane Matte, 2016-03-22
@mattedev

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 question

Ask a Question

731 491 924 answers to any question