laravel pdf only validation in version 7 code example Example: laravel validation pdf $rules = [ "file" => "required|mimes:pdf|max:10000" ]