mutator is not working while updating the data #45244
Unanswered
Shankar-Tom
asked this question in
Q&A
Replies: 1 comment 1 reply
-
have you tried adding a get? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
protected function password():Attribute
{
return Attribute::make(
set: fn ($value) => bcrypt($value),
);
}
I am using this mutator funtion to encrypt my password while storing to database it encrypt the password when i create a new record but not encrypting my password while i am updating my password using update function
Beta Was this translation helpful? Give feedback.
All reactions