public function encode_ids($data) { $hashids = new \Hashids\Hashids(); return $hashids->encode($data); }