diff --git a/src/flextype/Tokens/Tokens.php b/src/flextype/Tokens/Tokens.php index 42d110ca..e2b86073 100644 --- a/src/flextype/Tokens/Tokens.php +++ b/src/flextype/Tokens/Tokens.php @@ -17,18 +17,8 @@ class Tokens extends Entries { use Macroable; - public function create(string $id, array $data = []): bool + public function generateID(): string { - throw new Exception('Use generate method instead'); - return false; - } - - public function generate(array $data = []): string - { - $id = strings()->random()->toString(); - - parent::create($id, $data); - - return $id; + return bin2hex(random_bytes(16)); } } \ No newline at end of file