Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 392 Bytes

mime-type.md

File metadata and controls

22 lines (13 loc) · 392 Bytes

Media (MIME) Type Rule

Validate MIME Type Strings

public Intervention\Validation\Rules\MimeType::__construct()

Checks for a valid Mime Type (Media type).

Parameters

none

Example

use Intervention\Validation\Rules\MimeType;

$validator = Validator::make($request->all(), [
    'attribute-key' => new MimeType(),
]);