*/ abstract public static function rules(): array; /** * @return array */ public static function globalRules(): array { return [ 'members' => 'present|array|min:1', 'members.*' => 'integer|exists:members,id', ]; } public static function buttonName(): string { return 'Für ' . static::getName() . ' erstellen';; } public function setEventName(string $eventName): void { $this->eventName = $eventName; } }