Skip to content

EAN5#

This validation rules checks if the posted input is a valid EAN-5 number.

EAN-5 is a 5-digit European Article Number code, and is a supplement to the EAN-13 barcode which is primarly used on books. It is used to give a suggestion for the price of the book.

Valid examples are:

  • 52495
  • 54495
  • 05415

Class#

LaravelExtendedValidation\Rules\Barcode\EAN5

Constructor argument(s)#

none