$request->file()
Fetches a single file array from the Files object by key
$request->file(string $key): array|null
Parameters
| Name | Type | Default |
|---|---|---|
| $keyrequired | string |
no default value |
Return types
arrayornull
This method modifies the existing $request object it is applied to and returns it again.