Sorry, no results were found for this search.

ISBN Rule

Validate International Standard Book Number

127k Downloads / Month

Open Source MIT License

You are viewing the documentation for Intervention Validation v3. This version has reached end of life (EOL). Please consider upgrading to Version 4.

public Intervention\Validation\Rules\Isbn::__construct(?int $length = null)

The field under validation must be a valid International Standard Book Number (ISBN).

Parameters

length (optional)

Optional length parameter as integer to check only for ISBN-10 or ISBN-13.

Example

use Intervention\Validation\Rules\Isbn;

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