public function ajax_objetivos() { if (Request::ajax()) { $input = Input::get('destID'); $objetivo = Objetivo::where('destID', '=', $input)->get(); return Response::json($objetivo, 200); } }