public function updateCustomRecord($parameters) { TerritorialArea1::where('id_003', $parameters['id'])->update(['id_003' => $this->request->input('id'), 'name_003' => $this->request->input('name')]); }
public static function getTerritorialAreas1FromCountry($country) { return TerritorialArea1::where('country_id_003', $country)->orderBy('name_003', 'asc')->get(); }