'datetime', ]; public function setPasswordAttribute($value) { $this->attributes['password'] = Hash::make($value); } public function isRoot() { return $this->name === 'erpAdmin'; } }