File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/Http/Controllers/Settings Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 55use App \Http \Controllers \Controller ;
66use Illuminate \Http \RedirectResponse ;
77use Illuminate \Http \Request ;
8+ use Illuminate \Support \Facades \Hash ;
89use Illuminate \Validation \Rules \Password ;
910use Inertia \Inertia ;
1011use Inertia \Response ;
@@ -30,7 +31,7 @@ public function update(Request $request): RedirectResponse
3031 ]);
3132
3233 $ request ->user ()->update ([
33- 'password ' => $ validated ['password ' ],
34+ 'password ' => Hash:: make ( $ validated ['password ' ]) ,
3435 ]);
3536
3637 return back ();
Original file line number Diff line number Diff line change 33namespace Database \Factories ;
44
55use Illuminate \Database \Eloquent \Factories \Factory ;
6+ use Illuminate \Support \Facades \Hash ;
67use Illuminate \Support \Str ;
78
89/**
@@ -26,7 +27,7 @@ public function definition(): array
2627 'name ' => fake ()->name (),
2728 'email ' => fake ()->unique ()->safeEmail (),
2829 'email_verified_at ' => now (),
29- 'password ' => static ::$ password ??= 'password ' ,
30+ 'password ' => static ::$ password ??= Hash:: make ( 'password ' ) ,
3031 'remember_token ' => Str::random (10 ),
3132 'two_factor_secret ' => Str::random (10 ),
3233 'two_factor_recovery_codes ' => Str::random (10 ),
You can’t perform that action at this time.
0 commit comments