ISBN Rule
Validate International Standard Book Number
112k Downloads / Month
Open Source MIT License
112k Downloads / Month
Open Source MIT License
public Intervention\Validation\Rules\Isbn::__construct(?int $length = null)
The field under validation must be a valid International Standard Book Number (ISBN).
Optional length parameter as integer to check only for ISBN-10 or ISBN-13.
use Intervention\Validation\Rules\Isbn;
$validator = Validator::make($request->all(), [
'attribute-key' => new Isbn(10),
]);
Edit