Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 419 Bytes

luhn.md

File metadata and controls

22 lines (13 loc) · 419 Bytes

Luhn Rule

Validate a String Against Luhn Algorithm

public Intervention\Validation\Rules\Luhn::__construct()

The given value must verify against its included Luhn algorithm check digit.

Parameters

none

Example

use Intervention\Validation\Rules\Luhn;

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