VideoUrl
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.
at line80
string
message()
Get the validation error message.
at line92
protectedbool
passesDiskUrl(string$value)
Validate a storage disk video URL.
at line132
protectedbool
passesRemoteUrl(string$value)
Validate a remote video URL.
at line167
protectedbool
passesMimeType(string$mime)
Validate the MIME type of a video
at line185
protectedbool
passesCodec(string$url)
Validate the codec of a video