🔀 chore(laravel.md): Add checker hasFile

This commit is contained in:
Rudiansyah committed 2023-12-16 22:13:32 +07:00
1 parent f94e703836
commit c8197254ce
1 file changed
+5
+5
View File
@@ -734,6 +734,11 @@ if ($request->has(['name', 'email'])) {
if ($request->hasAny(['name', 'email'])) {
//
}
// if a file is present on request
if ($request->hasFile('image')) {
//
}
```
### Old Input