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