Skip to content

Commit

Permalink
Set bcrypt rounds using the hashing config
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-aguilar committed Apr 18, 2018
1 parent 0b89e2f commit dc320c8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/hashing.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/

'bcrypt' => [
'rounds' => 10,
'rounds' => env('BCRYPT_ROUNDS', 10),
],

/*
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down
3 changes: 0 additions & 3 deletions tests/CreatesApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Tests;

use Illuminate\Support\Facades\Hash;
use Illuminate\Contracts\Console\Kernel;

trait CreatesApplication
Expand All @@ -18,8 +17,6 @@ public function createApplication()

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

Hash::driver('bcrypt')->setRounds(4);

return $app;
}
}

0 comments on commit dc320c8

Please sign in to comment.