Category: Validation

Community Laravel Validation

Validate Data Types in Laravel Collections Using the `ensure()` Method

The ensure() method allows you to ensure that the items in a Collection are of a specific data type. If an item in the Collection is not of the specified data type, the method will throw an UnexpectedValueException.

ashallendesign.co.uk

700 clicks
700 views

Community Laravel Validation

Password Validation Rule Object in Laravel 8

A new Password Rule object is now included in Laravel v8.39, thanks to the efforts of Nuno Maduro.

laravel-news.com

1,334 clicks
1,334 views

Laravel Validation

Nullable vs. Sometimes

The more fields you are validating, the more chance you don't actually need all of them to process what you're doing.

Anthony Rappa Anthony Rappa

Anthony Rappa

2 min read
24,469 views

Laravel Validation

Laravel Validation 101, Controllers, Form Requests, & Rules

A core part of any project is understanding how to validate the incoming request from your users.

Anthony Rappa Anthony Rappa

Anthony Rappa

4 min read
2,308 views