public function test()
 {
     $hashids = new Hashids(Config::get('app.key'), 16, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');
     var_dump($hashids->encrypt(5));
     var_dump($hashids->encrypt(6));
 }
Esempio n. 2
0
 /**
  * @param int $id
  * @return string
  */
 public function hash($id)
 {
     return $this->hashids->encrypt($id);
 }