File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
database/seeds/Components/User Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 55use Carbon \Carbon ;
66use App \Models \User ;
77use 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 (),
Original file line number Diff line number Diff line change 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+ ]
You can’t perform that action at this time.
0 commit comments