Support the ongoing development of Laravel.io →
Database Laravel.io Testing
Last updated 2 years ago.
0

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 ?

0

@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

Last updated 9 years ago.
0

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);
0

You would probably want to load the autoloader or autoload what you need.

0

@astroanu, Thank you very much. It's working.

@lagbox, Thank you

0

Sign in to participate in this thread!

Eventy

Your banner here too?

moschel26 moschel26 Joined 21 Dec 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.