function AppQuestion() { $locationset = Input::get('location'); $alldata = Qmodel::where('location_id', 'LIKE', $locationset)->pluck('options'); if ($alldata) { return Response::json(array('status' => 'success', 'data' => json_decode($alldata))); } else { return Response::json(array('status' => 'fail', 'data' => null)); } }
function CheckLID() { $id = Input::get('locationid'); //$locationid="12345";//Input::get('location_id'); $queary = Qmodel::where('location_id', 'LIKE', $id)->pluck('location_id'); if ($queary != null) { return 1; } else { return 0; } }