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()
if(Request::ajax())
Looks to be the right answer. http://laravel.com/api/5.0/Illuminate/Http/Request.html#method_ajax