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:
@@ -32,6 +32,16 @@ class General
|
||||
return $data;
|
||||
}
|
||||
|
||||
public static function returnNotFoundData()
|
||||
{
|
||||
$data = (object)[
|
||||
'status' => false,
|
||||
'errors' => [config('error_code.exist_error')]
|
||||
];
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public static function returnErrorData($error = [])
|
||||
{
|
||||
$data = (object)[
|
||||
|
||||
@@ -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