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