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