From dc320c894253a4c18541bf27447e0066b16c825d Mon Sep 17 00:00:00 2001 From: Roberto Aguilar Date: Wed, 18 Apr 2018 10:09:32 -0500 Subject: [PATCH] Set bcrypt rounds using the hashing config --- config/hashing.php | 2 +- phpunit.xml | 1 + tests/CreatesApplication.php | 3 --- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/hashing.php b/config/hashing.php index f3332edea3f..d3c8e2fb22a 100644 --- a/config/hashing.php +++ b/config/hashing.php @@ -29,7 +29,7 @@ */ 'bcrypt' => [ - 'rounds' => 10, + 'rounds' => env('BCRYPT_ROUNDS', 10), ], /* diff --git a/phpunit.xml b/phpunit.xml index 9ee3e734723..c9e326b6959 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -24,6 +24,7 @@ + diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php index ff133fb4dc3..547152f6a93 100644 --- a/tests/CreatesApplication.php +++ b/tests/CreatesApplication.php @@ -2,7 +2,6 @@ namespace Tests; -use Illuminate\Support\Facades\Hash; use Illuminate\Contracts\Console\Kernel; trait CreatesApplication @@ -18,8 +17,6 @@ public function createApplication() $app->make(Kernel::class)->bootstrap(); - Hash::driver('bcrypt')->setRounds(4); - return $app; } }