mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Set bcrypt rounds using the hashing config
This commit is contained in:
parent
0b89e2ff20
commit
dc320c8942
@ -29,7 +29,7 @@ return [
|
||||
*/
|
||||
|
||||
'bcrypt' => [
|
||||
'rounds' => 10,
|
||||
'rounds' => env('BCRYPT_ROUNDS', 10),
|
||||
],
|
||||
|
||||
/*
|
||||
|
@ -24,6 +24,7 @@
|
||||
</filter>
|
||||
<php>
|
||||
<env name="APP_ENV" value="testing"/>
|
||||
<env name="BCRYPT_ROUNDS" value="4"/>
|
||||
<env name="CACHE_DRIVER" value="array"/>
|
||||
<env name="SESSION_DRIVER" value="array"/>
|
||||
<env name="QUEUE_DRIVER" value="sync"/>
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
namespace Tests;
|
||||
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
|
||||
trait CreatesApplication
|
||||
@ -18,8 +17,6 @@ trait CreatesApplication
|
||||
|
||||
$app->make(Kernel::class)->bootstrap();
|
||||
|
||||
Hash::driver('bcrypt')->setRounds(4);
|
||||
|
||||
return $app;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user