Skip to main content
Back to packages
594 GitHub stars

milwad-dev/laravel-validate

View on GitHub

Description

You can validate data easier, Laravel validate have lots of rule class for validation.

The Laravel-Validate package enhanced Laravel validation capabilities with custom rules and methods for simplified and efficient validation logic.

Usage

You can use Laravel-Validate Rules very simply. You can use the new keyword before the rule name.

use Milwad\LaravelValidate\Rules\ValidPhoneNumber;
 
return [
'phone' => ['required', new ValidPhoneNumber()],
];

Recent Courses on Laravel Daily

Next.js Basics for Laravel Developers

11 lessons
58 min

Laravel 13 Starter Kit Teams and Customizations

10 lessons
33 min

How to Structure Laravel 13 Projects

16 lessons
1 h 32 min read