Skip to content

A free open source IT asset/license management system

URL nullable validation isn’t working in Laravel 5.4?

snipeafc8133acf3f
diff --git a/app/Models/Supplier.php b/app/Models/Supplier.php
index eb61e8f28e..c4e1d926bb 100755
--- a/app/Models/Supplier.php
+++ b/app/Models/Supplier.php
@@ -26,7 +26,7 @@ class Supplier extends SnipeModel
'notes' => 'max:255|nullable',
'email' => 'email|max:150|nullable',
'zip' => 'max:10|nullable',
- 'url' => 'url|nullable',
+ 'url' => 'sometimes|nullable|string|max:250',
);
/**