+91-9015535514 info@msginfosys.com

It is one of the most popular PHP frameworks around the world. Laravel launches or upgrade its feature in every six months with the significant new changes. Laravel 5.x Upgradation has been released roughly at an interval of 6 months since then it started. Like the last update, i.e., 5.7 has been launched in September 2018. Now finally the Laravel now comes up with the new updates that are 5.8.

Laravel 5.8 has been released on 26th Feb 2019 with some fantastic and beautiful new feature and also overcomes the previous bugs.

Here in this post, we will discuss the new updates or crucial changes that you should be aware of whether creating a new project from scratch or updating an existing one.

Essential Updates Of Laravel

Here is some crucial update in the Laravel 5.8

  • Email Validation

Laravel’s built-in validation rule for email in 5.8 will now allow for international characters in email addresses.

  • Dotenv 3.0

The new updates in the Laravel support the new dotenv 3.0 to manage your project’s.env environment file. The important key feature in dotenv 3.0 is good for the multiline string & white space at the end of strings in your environment file.

  • Mailable directory name changes

This is less of the new up feature but a crucial element you’ll need to be aware of when upgrading a project. If you have mailable in your project & you have customised the components using the PHP artisan vendor: publish command, the folder names have changed slightly, namely the /resources/views/vendor/mail/markdown directory is now named /resources/view/vendor/mail/text.

  • Caching

If you’re using Laravel’s caching functions, you should know that if you’re passing an integer to the cache function in laravel new updates it will apply the time to live in the seconds & not minutes as it currently is in previous laravel version, so catch:: put (‘foo’, ‘bar’, 30); will store the item for 30 minutes in the last version & 30 seconds in the the latest version of the laravel. It is one of the essential but straightforward or crucial difference.

  • Carbon version 2 support

Laravel 5.8 comes up with the Carbon 2. In these new updates, you will be able to use Carbon 1.0 or Carbon 2.0. This updates also allow you to use Carbon immutable & even make your application use CarbonImmutable as the default.

Other Updates

  • Nexmo & Slack Notification Channels

  • Array & String helper function is deprecated

  • New Error Page Templates

  • JSON Values In MySQL

{ "@context": "http://schema.org", "@type": "Organization", "url": "http://www.msginfosys.com", "logo": "https://www.msginfosys.com/img/logo.png"}