I have been trying to find a way to determine ajax call in Laravel but i don\'t find any document regarding it.
I have a index() function which i want t
index()
after writing the jquery code perform this validation in your route or in controller.
$.ajax({ url: "/id/edit", data: name:name, method:'get', success:function(data){ console.log(data);} }); Route::get('/', function(){ if(Request::ajax()){ return 'it's ajax request';} });