This package provides a library of reusable validation rules for your Laravel projects.
You can install the package via composer:
composer require zhanang19/laravel-rules
use Zhanang19\LaravelRules\Rules\LinkedinUrl;
$request->validate([
'linkedin_url' => ['required', 'string', new LinkedinUrl],
]);
You can use all available rule directly as Rule object. See https://laravel.com/docs/8.x/validation#using-rule-objects
You must specify the validation rules as an array instead of using the
|
character to delimit your validation rules
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.