Update your user model
// App\Models\User
use Illuminate\Support\Facades\Hash;
...
/**
* Hash the password by default.
*/
public function setPasswordAttribute($password)
{
$this->attributes['password'] = Hash::make($password);
}
Update your user model
// App\Models\User
use Illuminate\Support\Facades\Hash;
...
/**
* Hash the password by default.
*/
public function setPasswordAttribute($password)
{
$this->attributes['password'] = Hash::make($password);
}
Top comments (0)