Skip to content

Commit ba3a5fd

Browse files
Updates to seeder
1 parent 96b30e3 commit ba3a5fd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

database/seeds/Components/User/UsersTableSeeder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Carbon\Carbon;
66
use App\Models\User;
77
use Illuminate\Database\Seeder;
8+
use Illuminate\Support\Facades\Hash;
89

910
/**
1011
* @author Zeeshan Ahmed <ziishaned@gmail.com>
@@ -34,7 +35,7 @@ public function run()
3435
'last_name' => $user['last_name'],
3536
'slug' => str_slug($user['name'], '_'),
3637
'email' => $user['email'],
37-
'password' => $user['password'],
38+
'password' => Hash::make($user['password']),
3839
'profile_image' => $user['profile_image'],
3940
'timezone' => $user['timezone'],
4041
'created_at' => Carbon::now(),

database/seeds/Components/User/users.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"first_name": "Consil",
55
"last_name": "Devs",
66
"email": "developers@consil.co.uk",
7-
"password": "$2y$10$hcLWnDpVtZIAA/tId.m8AeyamDInDVmBjytJzpNP9j6zqfABv12V2",
7+
"password": "password",
88
"profile_image": "tom.jpg",
99
"timezone": "Europe/London"
1010
}
11-
]
11+
]

0 commit comments

Comments
 (0)