Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 430 Bytes

kebab-case.md

File metadata and controls

22 lines (13 loc) · 430 Bytes

Kebab Case Rule

Validate a String in Kebab Case

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

The value under validation must be formated in Kebab case.

Parameters

none

Example

use Intervention\Validation\Rules\Kebabcase;

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