class VideoUrl implementsRule

Properties

protectedstring $message The validation message to display.
protectedarray $allowedMimes Allowed video MIME types
protectedarray $allowedCodecs Allowed video codecs

Methods

__construct()

Create a new instance.

bool
passes(string$attribute,mixed$value)

Determine if the validation rule passes.

string
message()

Get the validation error message.

bool
passesDiskUrl(string$value)

Validate a storage disk video URL.

bool
passesRemoteUrl(string$value)

Validate a remote video URL.

bool
passesMimeType(string$mime)

Validate the MIME type of a video

bool
passesCodec(string$url)

Validate the codec of a video

Details

at line42
__construct()

Create a new instance.

at line66
bool passes(string$attribute,mixed$value)

Determine if the validation rule passes.

Parameters

string $attribute
mixed $value

Return Value

bool

at line80
string message()

Get the validation error message.

Return Value

string

at line92
protectedbool passesDiskUrl(string$value)

Validate a storage disk video URL.

Parameters

string $value

Return Value

bool

at line132
protectedbool passesRemoteUrl(string$value)

Validate a remote video URL.

Parameters

string $value

Return Value

bool

at line167
protectedbool passesMimeType(string$mime)

Validate the MIME type of a video

Parameters

string $mime

Return Value

bool

at line185
protectedbool passesCodec(string$url)

Validate the codec of a video

Parameters

string $url URL/path to the video file

Return Value

bool