insert($data); } public function getBranchesByBusinessId($businessId) { return $this->db->table('business_branches') ->where('business_id', $businessId) ->get() ->getResultArray(); } } ?>