Skip to content

Commit dc320c8

Browse files
Set bcrypt rounds using the hashing config
1 parent 0b89e2f commit dc320c8

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

config/hashing.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030

3131
'bcrypt' => [
32-
'rounds' => 10,
32+
'rounds' => env('BCRYPT_ROUNDS', 10),
3333
],
3434

3535
/*

phpunit.xml

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
</filter>
2525
<php>
2626
<env name="APP_ENV" value="testing"/>
27+
<env name="BCRYPT_ROUNDS" value="4"/>
2728
<env name="CACHE_DRIVER" value="array"/>
2829
<env name="SESSION_DRIVER" value="array"/>
2930
<env name="QUEUE_DRIVER" value="sync"/>

tests/CreatesApplication.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Tests;
44

5-
use Illuminate\Support\Facades\Hash;
65
use Illuminate\Contracts\Console\Kernel;
76

87
trait CreatesApplication
@@ -18,8 +17,6 @@ public function createApplication()
1817

1918
$app->make(Kernel::class)->bootstrap();
2019

21-
Hash::driver('bcrypt')->setRounds(4);
22-
2320
return $app;
2421
}
2522
}

0 commit comments

Comments
 (0)