Media (MIME) Type Rule
Validate MIME Type Strings
175k Downloads / Month
Open Source MIT License
175k Downloads / Month
Open Source MIT License
Validate MIME type strings in Laravel with Intervention Validation. Content type format checks.
public Intervention\Validation\Rules\MimeType::__construct()
Checks for a valid Mime Type (Media type).
none
use Illuminate\Support\Facades\Validator; use Intervention\Validation\Rules\MimeType; $validator = Validator::make($request->all(), [ 'attribute-key' => new MimeType(), ]);