HasRemoteContent
trait HasRemoteContent
Properties
| protected Response|null | $response |
Methods
string
content()
Get the raw representation of the file.
string|null
name()
Get the displayable name of the file.
string|null
mimeType()
Get the file's MIME type.
string|null
declaredMimeType()
Get the declared MIME type without fetching the remote resource.
array
__serialize()
Prepare the file for serialization, discarding the cached HTTP response so it can be fetched again.
string
__toString()
Get the file content as a string.
Details
at line 18
string
content()
Get the raw representation of the file.
at line 26
string|null
name()
Get the displayable name of the file.
at line 36
string|null
mimeType()
Get the file's MIME type.
at line 44
string|null
declaredMimeType()
Get the declared MIME type without fetching the remote resource.
at line 52
protected Response
response()
Get the HTTP response for the remote file.
at line 60
array
__serialize()
Prepare the file for serialization, discarding the cached HTTP response so it can be fetched again.
at line 72
string
__toString()
Get the file content as a string.