mirror of
https://github.com/Fechin/reference.git
synced 2026-11-22 14:01:45 +03:00
Merge pull request #483 from lypsisrudiansyah/main
🔀 chore(laravel.md): Add checker hasFile
This commit is contained in:
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