Kebab Case Rule
Validate a String in Kebab Case
176k Downloads / Month
Open Source MIT License
176k Downloads / Month
Open Source MIT License
Validate kebab-case strings in Laravel with Intervention Validation. Ensure proper kebab-case format.
public Intervention\Validation\Rules\Kebabcase::__construct()
The value under validation must be formatted in Kebab case.
none
use Illuminate\Support\Facades\Validator; use Intervention\Validation\Rules\Kebabcase; $validator = Validator::make($request->all(), [ 'attribute-key' => new Kebabcase(), ]);