1 /**
2 * Display a listing of the resource.
3 *
4 * @param Illuminate\Http\Request $request
5 * @return Response
6 */
7 public function index(Request $request)
8 {
9 if($request->ajax()){
10 return "AJAX";
11 }
12 return "HTTP";
13 }