for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ElfSundae\Laravel\Hashid;
class HexDriver implements DriverInterface
{
/**
* Encode the integer.
*
* @param mixed $data
* @return string
*/
public function encode($data)
return dechex((int) $data);
}
* Decode the hex string.
* @return int
public function decode($data)
return hexdec($data);