diff --git a/app/Http/Livewire/Profile/Settings/General.php b/app/Http/Livewire/Profile/Settings/General.php index ad875c910ec8..249c832458aa 100644 --- a/app/Http/Livewire/Profile/Settings/General.php +++ b/app/Http/Livewire/Profile/Settings/General.php @@ -12,6 +12,7 @@ namespace App\Http\Livewire\Profile\Settings; +use Illuminate\Support\Facades\Hash; use Livewire\Component; class General extends Component @@ -65,7 +66,7 @@ class General extends Component $data = $this->validate($this->rules); if (!empty($this->password)) { - $this->profile->password = encrypt($this->password); + $this->profile->password = Hash::make($this->password); } $this->profile