all($columns, $order, $sort); } /** * Find the province * * @param int $id * @return Province */ public function findProvinceById(int $id) : Province { try { return $this->findOneOrFail($id); } catch (ModelNotFoundException $e) { throw new ProvinceNotFoundException($e->getMessage()); } } /** * Update the province * * @param array $params * @return boolean */ public function updateProvince(array $params) : bool { try { return $this->model->update($params); } catch (QueryException $e) { throw new ProvinceNotFoundException($e->getMessage()); } } /** * @param int $provinceId * @return mixed */ public function listCities(int $provinceId) : Collection { return $this->findProvinceById($provinceId)->cities()->get(); } /** * @return Country */ public function findCountry() : Country { return $this->model->country; } }