VIN Rule
Validate Vehicle Identification Numbers
167k Downloads / Month
Open Source MIT License
167k Downloads / Month
Open Source MIT License
Validate Vehicle Identification Numbers (VIN) in Laravel with Intervention Validation. Automotive VIN checks.
public Intervention\Validation\Rules\Vin::__construct(bool $checkDigit = false)
The field under validation must be a valid Vehicle identification number according to ISO-3779.
checkDigit
Optional verification according to the North American check system. Default false. Please note that enabling the check digit will cause all VINs without check digit encoded (such as European VIns) to be recognized as invalid, even though they are actually valid.
use Illuminate\Support\Facades\Validator; use Intervention\Validation\Rules\Vin; $validator = Validator::make($request->all(), [ 'attribute-key' => new Vin(), ]);