From ae399f9bada4bbfaf4fa1f5d91da49a176534045 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sun, 19 May 2024 23:25:12 -0400 Subject: [PATCH] Add port validation rule for #68 --- app/Rules/Port.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 app/Rules/Port.php diff --git a/app/Rules/Port.php b/app/Rules/Port.php new file mode 100644 index 000000000..7225509c0 --- /dev/null +++ b/app/Rules/Port.php @@ -0,0 +1,34 @@ + 65535) { + $fail('The :attribute must be less or equal to 65535.'); + } + } +}