Skip to content

Commit

Permalink
Set default hashing configuration to make it easier for existing Lara…
Browse files Browse the repository at this point in the history
…vel (#22017)

install to use new Hasher.

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone authored and taylorotwell committed Nov 9, 2017
1 parent da3b708 commit 64ff115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Hashing/HashManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ public function needsRehash($hashedValue, array $options = [])
*/
public function getDefaultDriver()
{
return $this->app['config']['hashing.driver'];
return $this->app['config']['hashing.driver'] ?? 'bcrypt';
}
}

0 comments on commit 64ff115

Please sign in to comment.