public function setPasswordAttribute($value) { $this->attributes['password'] = app('hash')->make($value); }