It's not automatically encrypted but you can add a mutator to your User model to do that:
public function setPasswordAttribute($value)
{
$this->attributes['password'] = bcrypt($value);
}
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
After looking at the new laravel version 5.4 i notice when using "$user = User::create(request(['name', 'email','password']));" the password isnt automatically bcrypt the password, is it me, or isnt by defaul bcrypt by default? I dont remember, but isnt supposed the method "create" already do this?
Please or to participate in this conversation.