Commit 2ed6348d by hfpp2012 yinsigan

修改user mdoel

1 parent 806a3d84
......@@ -26,4 +26,14 @@ class User extends Authenticatable
protected $hidden = [
'password', 'remember_token',
];
public function setNameAttribute($value)
{
$this->attributes['name'] = ucfirst($value);
}
public function setPasswordAttribute($value)
{
$this->attributes['password'] = bcrypt($value);
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!