> */ public function rules(): array { return [ 'email' => [ 'required', 'email', ], 'role' => [ 'required', 'string', Rule::enum(Role::class) ->except([Role::Owner, Role::Placeholder]), ], ]; } public function getRole(): Role { return Role::from($this->input('role')); } public function getEmail(): string { return $this->input('email'); } }