]> _ Git - cubist_cms-back.git/commitdiff
wip #3169
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 31 Oct 2019 14:51:53 +0000 (15:51 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 31 Oct 2019 14:51:53 +0000 (15:51 +0100)
src/app/Validation/Rules/PhoneNumber.php [deleted file]

diff --git a/src/app/Validation/Rules/PhoneNumber.php b/src/app/Validation/Rules/PhoneNumber.php
deleted file mode 100644 (file)
index ab85a2e..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-
-namespace Cubist\Backpack\app\Validation\Rules;
-
-use Illuminate\Contracts\Validation\Rule as BaseRule;
-
-class PhoneNumber implements BaseRule
-{
-    public function passes($attribute, $value)
-    {
-        return preg_match("/^[0-9 \+\.\-\(\)]{10,}$/", $value);
-    }
-    /**
-     * Get the validation error message.
-     *
-     * @param none.
-     * @return string.
-     *
-     **/
-    public function message()
-    {
-        return Helper::getLocalizedErrorMessage(
-            'phone_number',
-            'The :attribute must be a valid telephone number (7 - 15 digits in length)'
-        );
-    }
-}