AudioResponse
class AudioResponse implements Stringable
Traits
Properties
| protected string|null | $randomStorageName | The cached copy of the file's random name. |
from Storable |
| string|null | $mime |
Methods
Store the file on a filesystem disk.
Store the file on a filesystem disk with public visibility.
Store the file on a filesystem disk with public visibility.
Store the file on a filesystem disk.
Create an audio response.
Get a default filename for the file.
Get the raw representation of the audio.
Get the MIME type for the audio.
Get the raw string content of the audio.
Details
in
Storable at line 21
string|false
store(string $path = '', UnitEnum|string|null $disk = null, array $options = [])
Store the file on a filesystem disk.
in
Storable at line 29
string|false
storePublicly(string $path = '', UnitEnum|string|null $disk = null, array $options = [])
Store the file on a filesystem disk with public visibility.
in
Storable at line 39
string|false
storePubliclyAs(string $path, string|null $name = null, UnitEnum|string|null $disk = null, array $options = [])
Store the file on a filesystem disk with public visibility.
in
Storable at line 53
string|false
storeAs(string $path, string|null $name = null, UnitEnum|string|null $disk = null, array $options = [])
Store the file on a filesystem disk.
at line 24
__construct(string $audio, Usage $usage, Meta $meta, string|null $mimeType = null)
Create an audio response.
at line 36
protected string
randomStorageName()
Get a default filename for the file.
at line 51
string
content()
Get the raw representation of the audio.
at line 59
string|null
mimeType()
Get the MIME type for the audio.
at line 67
string
__toString()
Get the raw string content of the audio.