laravel validate video code example
Example 1: how to validate video laravel
$this->validate($req, [
'video' => 'required|mimes:mp4,ogx,oga,ogv,ogg,webm',
]);
Example 2: how to validate video laravel
'video' => 'mimetypes:video/x-ms-asf,video/x-flv,video/mp4,application/x-mpegURL,video/MP2T,video/3gpp,video/quicktime,video/x-msvideo,video/x-ms-wmv,video/avi'