LaravelHash

Summary

No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
File
hash.php
Package
Default
Class hierarchy
LaravelHash

Tags

None found

Methods

make()

make(string  $value, integer  $rounds = 8) : string

Hash a password using the Bcrypt hashing scheme.

// Create a Bcrypt hash of a value $hash = Hash::make('secret');

// Use a specified number of iterations when creating the hash
$hash = Hash::make('secret', 12);

Parameters

string $value
integer $rounds

Returns

string

static

Tags

None found

check()

check(string  $value, string  $hash) : boolean

Determine if an unhashed value matches a Bcrypt hash.

Parameters

string $value
string $hash

Returns

boolean

static

Tags

None found