Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit e622556

Browse files
committed
Update HandleSpladeFileUploads.php
1 parent 3b0e80a commit e622556

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/FileUploads/HandleSpladeFileUploads.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ public static function forFormRequest(FormRequest $formRequest): FormRequest
8383
return true;
8484
}
8585

86+
if (!class_exists(File::class)) {
87+
return false;
88+
}
89+
8690
foreach ($rules as $rule) {
8791
if ($rule instanceof File) {
8892
return true;

0 commit comments

Comments
 (0)