$request */ abstract public static function fromRequest(array $request): self; /** * @return array */ abstract public static function rules(): array; /** * @return array */ public static function globalRules(): array { return [ 'members' => 'present|array|min:1', 'members.*' => 'integer|exists:members,id', ]; } }