I assume the Illuminate\Hashing\BcryptHasher::make() method. You can check the source of this class to see what happens:
<?php namespace Illuminate\Hashing; class BcryptHasher implements HasherInterface { protected $rounds = 10; public function make($value, array $options = array()) { $cost = isset($options['rounds']) ? $options['rounds'] : $this->rounds; $hash = password_hash($value, PASSWORD_BCRYPT, array('cost' => $cost)); if ($hash === false) { throw new \RuntimeException("Bcrypt hashing not supported."); } return $hash; }
So, to do this basically PHP, you need to do something like:
$string = "some string that needs to be hashed"; $hash = password_hash($string, PASSWORD_BCRYPT, array('cost' => 10));
source share