Increase ID column size; seed ID generator with uniqid() #630 (#631)

This commit is contained in:
Nabeel S
2020-03-09 13:16:10 -04:00
committed by GitHub
parent 2c238763cb
commit 80b20a8b25
7 changed files with 55 additions and 29 deletions

View File

@@ -26,7 +26,7 @@ class Utils
$length = Model::ID_MAX_LENGTH;
}
$hashids = new Hashids('', $length);
$hashids = new Hashids(uniqid(), $length);
$mt = str_replace('.', '', microtime(true));
return $hashids->encode($mt);
}