Video
abstract class Video extends File
Properties
| string|null | $name | from File | |
| string|null | $mime | from File | |
| protected array<string, string>|SerializableClosure | $headers | from File | |
| protected array<string, mixed>|SerializableClosure | $providerOptions | from File |
Methods
Reconstruct a file instance from its array representation.
Get a required value from the file representation.
Specify HTTP headers for the file upload. Closures may only capture serializable values.
Specify provider-specific options for the file upload. Closures may only capture serializable values.
Get the provider-specific options for the file upload.
Create a new video from Base64 data.
Create a new video using the video at the given path.
Create a new remote video using the video at the given URL.
Create a new stored video using the video at the given path on the given disk.
Create a new Base64 video using the given file upload.
Details
in
File at line 29
static File|null
fromArray(array $data)
Reconstruct a file instance from its array representation.
in
File at line 70
static protected string
value(array $data, string $key, string $type)
Get a required value from the file representation.
in
File at line 82
string|null
name()
Get the displayable name of the file.
in
File at line 102
File
withHeaders(array|Closure $headers)
Specify HTTP headers for the file upload. Closures may only capture serializable values.
in
File at line 116
File
withProviderOptions(array|Closure $options)
Specify provider-specific options for the file upload. Closures may only capture serializable values.
in
File at line 130
array
providerOptions(Lab|string $provider)
Get the provider-specific options for the file upload.
in
File at line 142
array
headers(Lab|string $provider)
Get the HTTP headers for the file upload.
in
File at line 152
string|null
mimeType()
Get the file's MIME type.
at line 14
static Base64Video
fromBase64(string $base64, string|null $mimeType = null)
Create a new video from Base64 data.
at line 22
static LocalVideo
fromPath(string $path, string|null $mimeType = null)
Create a new video using the video at the given path.
at line 30
static RemoteVideo
fromUrl(string $url, string|null $mimeType = null)
Create a new remote video using the video at the given URL.
at line 38
static StoredVideo
fromStorage(string $path, string|null $disk = null)
Create a new stored video using the video at the given path on the given disk.
at line 46
static Base64Video
fromUpload(UploadedFile $file, string|null $mimeType = null)
Create a new Base64 video using the given file upload.