I am working in laravel 5.1. I have three pages in routes Home,show,short. I also have blade file for home and short routes
I have a form on home page .After submit the button on home page I want that (1). the data will be save at the database via post request which code has been written in a method postdata() which routes is show..
(2). I want to display the results based on the inserted data after doing query from database which code has written in showdata() method of short route .
I want all that happen after clicking the submit button without refreshing the page.but my problem is that i have two routes and in url of ajax method how can i give two url. please suggest me the better and efficient way to do that.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire