Skip to content

Commit a2f8aaa

Browse files
authored
9.5.1 (#618)
* feat: support string url as path for files * Fix styling * fix: fixing str --------- Co-authored-by: binaryk <[email protected]>
1 parent cea3d19 commit a2f8aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fields/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public function getStoringRules(): array
305305

306306
// Modify validation to accept URLs
307307
foreach ($rules as &$rule) {
308-
if (is_string($rule) && Str::startsWith($rule, 'file')) {
308+
if (is_string($rule) && str($rule)->startsWith('file')) {
309309
$rule = 'sometimes|'.$rule;
310310
}
311311
}

0 commit comments

Comments
 (0)