mirror of
https://github.com/Fechin/reference.git
synced 2026-11-22 22:02:41 +03:00
🔀 chore(laravel.md): Add checker hasFile
This commit is contained in:
1 parent
f94e703836
commit
c8197254ce
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user