/**
* Display a listing of the resource.
*
* @param IlluminateHttpRequest $request
* @return Response
*/
public function index(Request $request)
{
if($request->ajax()){
return "AJAX";
}
return "HTTP";
}
if($request->ajax()){
return "ajax request";
}