• Reading time ~ 1 min
  • 20.04.2023

Validate for Laravel is a package by Milwad that helps developers write validation logic faster with plenty of useful Rule Objects included:

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

This package provides developers with a variety of pre-built validation rules that can be easily integrated into their Laravel projects, allowing them to write validation logic faster and more efficiently. With over 35 rule objects for everything from phone numbers to slugs, this package makes it easy to validate user input in a variety of scenarios. Plus, with translations available for over ten languages, this package offers even more flexibility and convenience for Laravel developers around the world:

  • ValidBitcoinAddress
  • ValidCapitalCharWithNumber
  • ValidDiscordUsername
  • ValidHashtag
  • ValidIpAddressIPV4
  • ValidIpAddressIPV6
  • ValidPhoneNumber
  • ValidPort
  • ValidSlug
  • ValidBase64
  • ValidJwt
  • ValidDomain
  • ValidCamelCase
  • ValidPascalCase
  • ValidKebabCase
  • ValidSnakeCase
  • And more...

You can see the complete list of rules in the project's readme and setup instructions. Also, at the time of writing, this package has validation translations for over ten languages, such as English, Chinese, French, Japanese, and more!

You can learn more about this package, get full installation instructions, and view the source code on GitHub.

Comments

No comments yet
Yurij Finiv

Yurij Finiv

Full stack

ABOUT

Professional Fullstack Developer with extensive experience in website and desktop application development. Proficient in a wide range of tools and technologies, including Bootstrap, Tailwind, HTML5, CSS3, PUG, JavaScript, Alpine.js, jQuery, PHP, MODX, and Node.js. Skilled in website development using Symfony, MODX, and Laravel. Experience: Contributed to the development and translation of MODX3 i...

About author CrazyBoy49z
WORK EXPERIENCE
Contact
Ukraine, Lutsk
+380979856297