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 Much Does It Cost To Hire An App Developer In 2019?

It is considered a very important question that how much it effectively costs for the purpose of hiring an app developer and that too in the year 2019. Nowadays, due to the rising trend, it is very important to hire iPhone developer. Also, it seems that each business, as well as every brand, has its own app in the year 2019. In that way, you can also hire iPhone app developer India. Even, there are many of the local coffee shops which possess an app for the purpose of ordering a frappuccino available at your doorstep or you can collect it on discounts. For developing these apps, sometimes it becomes very important to preferably hire iPhone programmer. There is a gradual presence of many of the IT entrepreneur who is usually making a fortune from a hit app. So, here are given some of the ever-actual issues of how to  hire iPhone app developer  for the development purpose. We will preferably talk about some of the important as well as general tips which can prove helpful t...

Engagement Models For Laravel Application Development

  In the mobile app, the development backend holds prime importance. It has a trusted and dependable technology that would take good care of your backend operations with ease. For this purpose, Laravel creator said, “we want to simplify the development process”. Today the Laravel 5.4 is the latest released version that enforces the same ideology with new features. Leverage the best Laravel application development service & create a well-tailored web app. Hire a Laravel development company to scale business growth. Laravel provides predefined architecture and customized backend logic to stand out differently from the crowd. Hire Laravel developers in India and choose the company that understands your needs. We are one of the best leading web application development companies in India. We offer a wide range of engagement models that suits our customer’s needs. Let’s dive into understanding the engagement models in a better way. What are engagement models? An engagement model i...

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...