MAC address Rule

Validate a MAC address

50.7k Downloads / Month

Open Source MIT License

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

The field under validation must be a media access control address (MAC address).

Parameters

none

Example

use Intervention\Validation\Rules\MacAddress;

$validator = Validator::make($request->all(), [
    'my-value' => new MacAddress(),
]);