feat: implement multi-tenant cart functionality and add image validation helper
This commit is contained in:
@@ -21,6 +21,10 @@ class ImageOrBase64Rule implements ValidationRule
|
||||
if (is_string($value)) {
|
||||
$payload = trim($value);
|
||||
|
||||
if (\Illuminate\Support\Str::isUuid($payload)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($payload === '') {
|
||||
$fail("The :attribute must not be empty.");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user