app['validator']; $validator->extend('idNumber', function ($attribute, $value, $paramters) { return (new IDCard($value))->isValid(); }); } }