diff options
author | Marvin Borner | 2018-07-08 17:59:29 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-08 17:59:29 +0200 |
commit | 1c2e6127f480979186e62c2e6ecc2971bf3a4451 (patch) | |
tree | 5abff38ff873b1bc693842d0d9f870e2d2935e54 /database | |
parent | 2b7e31ffa79f508453bc5c759a7511e476cbbe96 (diff) |
Some fixes for hashing
Diffstat (limited to 'database')
-rw-r--r-- | database/seeds/DatabaseSeeder.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php index db0f2fd..b31b7e0 100644 --- a/database/seeds/DatabaseSeeder.php +++ b/database/seeds/DatabaseSeeder.php @@ -2,6 +2,7 @@ use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Hash; class DatabaseSeeder extends Seeder { @@ -23,8 +24,8 @@ class DatabaseSeeder extends Seeder DB::table('users')->insert([ 'name' => 'Marvin Borner', 'email' => 'marvin@borners.de', - 'password' => bcrypt('password'), - 'hash' => bcrypt(bcrypt('genesis') . 'Marvin Borner'. 'marvin@borners.de'. 'password') // hashing: prev hash, all fields in current 'block' + 'password' => Hash::make('password'), + 'hash' => Hash::make(Hash::make('genesis') . 'Marvin Borner' . 'marvin@borners.de' . Hash::make('password')) // hashing: prev hash, all fields in current 'block' ]); } } |