Skip to main content

Laravel 5.8.33: Let’s Talk About All New Email Validation Rule Options In It

Laravel 5.8 Email Validation

The team of Laravel has released all-new v5.8.33 in the month of August. These new versions have new capabilities added to the email validation rule that include the latest changes and some of the fixes.

Let’s have a look at the changes:
  • From requests a user can now provide a passedValidation() callback that will fire once the validation has passed:

public function passedValidation()

{
       $this->replace(['name' => 'Adam']);
}
  • These passedValidation callbacks can be helpful for applying filters to data without intrusive with validation.
  • The new type of email validation support has been implemented by Dries Vints using the egulias/EmailValidator package.
  • When checking for valid emails, the improved email validation rule acquaints the ability to add multiple email validators.

Example:

$request->validate([

    'email' => 'email:rfc,dns'

]);

By referring to the latest laravel validation documentation for 5.8 you can get to know about the new parameters possible in the email validation rule. The possible rules include strict, spoof, dns, and rfc filter.

Another support added by Dries Vints is for Redis 5.0 in a backward-compatible way so that all can support v5.0 in starting in this release.

For MySQL and Postgres ‘insert ignore’ support was added and to learn it in detail you need to check out add insert ignore support on GitHub.

Ignore works during an insert that means if the database runs into errors, it generally terminates and doesn’t insert any rows. While with ignore, the database will ignore invalid data and insert valid rows.

The amazing last feature that is added is the ability to use the custom, Whoops Handler. For more details, you can check on GitHub.

Have A Look On Whole Difference Between 5.8.32 and 5.8.33 as per on GitHub:

v5.8.33 :

Added 
  • Implement new types for email validation support
  • Added ValidatesWhenResolvedTrait::passedValidation() callback
  • Allowed to override the existing Whoops handler
  • Added Redis 5 support
  • Added insert or ignore support

Fixed
  • Avoid undefined index errors when using AWS IAM
  • Fixed exception message in the ProviderRepository::writeManifest()
  • Fixed command testing of output and questions expectations
  • Added ignoring of classes which are not instantiable during event discovery
  • Fixed non-displayable boolean values invalidation messages 
  • Used real class name for seeders in the output
  • Fixed invalid link expiry count in ResetPassword

Refactoring
  • Simplified isset()

Why To Wait?


 laravel application development

Get in touch with Concetto Lab to get the best applications and reshape your business today.

We provide apps that are elevated in performance and quality with laravel application development in minimal cost. Our laravel development services includes laravel customization and integration, website migration using laravel, laravel framework development, and laravel support & maintenance.

Comments

Popular posts from this blog

How to Hire a Full Stack Developer for Frontend Web Development?

People are often heard nowadays talking about back end and front end or sometimes the server side and the client side. The proper presentation of the data to the users is included in the frontends. The users mainly access the web through the normal browser. So, to target the end users, various technologies like JavaScript, CSS, and HTML are used. The  full stack web developer  and full stack programmer is mainly involved in the overall task of development, and so, it may be considered as the proper answer to the question, “What is full stack developer?” The backend generally, on the other hand, is much more concerned with the data aspect of a web application and also with the business logic. The 3-tier architecture For web development, there is mainly three-tier architecture which proves very much useful. Common client-server software architecture is implemented in this particular approach. Due to its huge demand, it is imperative to learn full stack web develo...

5 Features while Developing On-Demand ‘Mover n Packers’ App like Uber Movers

Peeping into a few years back, though there were mobiles trending, mobile apps were more limited towards messaging and gaming, but a year or two year back scenario depicts a different story in all. On-demand applications that can be for Food or say Cab Booking or for Salon or for the  Guard booking app  for the event, anything, and everything can be covered in the app itself. UBER is considered more of as a BRAND instead of just an app to book the cab. It has widespread its scope beyond the app in various fields across the globe. Along with the services of moving human from one destination to another, not just limiting to that, Uber is even into Movers and Packers, namely Uber Movers. According to the report, “UberMovers provides free and professional moving services for up to ½ an hour for students in Atlanta between 9 a.m. to 2 p.m. on Saturdays only”. Similar moving services, it provides in Nashville even. Eventually, it is spreading its wings further too. Are you the...

Top excellent Photo Editing Apps for iPhone and Android

 The photograph is always looking to capture picture-perfect images with creating memories. Using smartphones cameras offers great optics with high-resolution and sharp results. Today photographers are increasing as they click high-quality images with excellent resolution. If you’re a beginner and want to click masterpiece, the best we could recommend is to go for the best photo editing app for iPhone and Android to create a great visual strategy. One can also choose a product photography course to include photographic techniques and explain the best photo editing apps they should use. After you pick the best photo editing app, make sure it offers a comprehensive set of tools that make your photos shine. What are the best photo editing apps? After testing dozens of famous applications, we have listed below the best photo editing apps for iPhone and Android . We know that not everyone can shoot a photo with just an Android or iPhone smartphone. Therefore, here come the photo editi...