mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 12:24:01 +00:00
contract template endpoint
This commit is contained in:
@@ -12,7 +12,7 @@ class Hasher
|
||||
|
||||
public static function encode($entity = '', ...$args)
|
||||
{
|
||||
$hash = new Hashids($entity, 11);
|
||||
$hash = new Hashids($entity, 20);
|
||||
return $hash->encode(...$args);
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class Hasher
|
||||
return $enc;
|
||||
}
|
||||
|
||||
$hash = new Hashids($entity, 11);
|
||||
$hash = new Hashids($entity, 20);
|
||||
return $hash->decode($enc) ? $hash->decode($enc)[0] : '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user