U mind try somethin' like this
<?php echo \Hash::make('12345'); ?>
but, the way u call is not a problem i think. In fact, that syntax is running well on my koding.
would u mind give me the rest of that error ?
@endrureza, I do not use laravel. I use php native. I just wanted to use the hash laravel. So, my point, whether it can use the hash laravel in native php?
If executed in native php, the above code does not work
try including the Illuminate\Hashing\BcryptHasher class on to your php file. Then you can do this.
$password = 'password';
$hasher = new BcryptHasher();
$hashed= $hasher->make($password);
$check = $hasher->check($password, $hashed);
You would probably want to load the autoloader or autoload what you need.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community