Skip to content

Commit

Permalink
9.5.1 (#618)
Browse files Browse the repository at this point in the history
* feat: support string url as path for files

* Fix styling

* fix: fixing str

---------

Co-authored-by: binaryk <[email protected]>
  • Loading branch information
binaryk and binaryk authored Dec 2, 2024
1 parent cea3d19 commit a2f8aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public function getStoringRules(): array

// Modify validation to accept URLs
foreach ($rules as &$rule) {
if (is_string($rule) && Str::startsWith($rule, 'file')) {
if (is_string($rule) && str($rule)->startsWith('file')) {
$rule = 'sometimes|'.$rule;
}
}
Expand Down

0 comments on commit a2f8aaa

Please sign in to comment.