---
application: "Intervention Validation"
version: "Version 4"
status: "stable"
---

# VIN Rule

## Validate Vehicle Identification Numbers

Learn how to validate Vehicle Identification Numbers (VIN) with the additional validation rules of Intervention Validation for your Laravel application.

> public Intervention\Validation\Rules\Vin::__construct(bool $checkDigit = false)

The field under validation must be a valid [Vehicle identification number](https://en.wikipedia.org/wiki/Vehicle_identification_number) according to ISO-3779.

### Parameters

**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.

### Example

```php
use Illuminate\Support\Facades\Validator;
use Intervention\Validation\Rules\Vin;

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

---

## Become a Sponsor

### Intervention Validation needs your help to keep the project going

Intervention Validation is non-commercial, open source licensed and completely free to use. The considerable
effort required to maintain and develop the software is only possible with the financial support
of sponsors. There are two ways in which you can support this project.

- Support via [GitHub Sponsors](https://github.com/sponsors/Intervention)
- Support via [Ko-Fi](https://ko-fi.com/interventionphp)