'datetime', ]; public function characters() { return $this->hasMany(Character::class); } public function getRoleAttribute() { if (!$this->attributes['role']) { return 'user'; } return $this->attributes['role']; } }