예제 #1
0
 /**
  * Static method to produce a unique md5 in base52 that excludes vowels
  * @param int $bytes  The number of bytes the result should be
  * @return string  Random number in base52
  */
 public static function slug($bytes)
 {
     return Cipher::baseConvertMapped(static::random($bytes), '0123456789abcdef', '0123456789bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ');
 }