Skip to content

Instantly share code, notes, and snippets.

@Sarav-S
Last active September 23, 2016 02:10
Show Gist options
  • Save Sarav-S/fa9eba7ca39a4556a4a32127b17c81c1 to your computer and use it in GitHub Desktop.
Save Sarav-S/fa9eba7ca39a4556a4a32127b17c81c1 to your computer and use it in GitHub Desktop.
bcrypt() function
<?php
if (! function_exists('bcrypt')) {
/**
* Hash the given value.
*
* @param string $value
* @param array $options
* @return string
*/
function bcrypt($value, $options = [])
{
return app('hash')->make($value, $options);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment