Learn New Features In Laravel 6.0



Taylor Otwell, the creator of Laravel, has been teasing the 6.0 release for a few months now and today it has finally officially dropped. Let's take a look at what's changing and how you can start using it right away.

Laravel, the open-source PHP framework for web development, is aimed at making the development process easy by simplifying methods to carry out common activities such as authentication, caching, etc.

The introduction of Laravel version 5.0 managed to create a new wave of excitement among the developers due to its exciting features like inbuilt authentication system and multiple file support facility etc.

So, the entire community is looking forward to the release of the latest Laravel version 6, a new team member in the Laravel framework family!

we will discuss some of the new features and updates that are available for everyone now.

Stay tuned!


1. Semantic Versioning


From this Laravel 6.0 and upcoming Laravel versions, Semantic Versioning will go forward as per the release notes published by the Laravel team.

Although the jump from 5.8 to 6.0 is a major release, Taylor Otwell has mentioned that in terms of new features and changes, this update will feel more like moving from 5.8 to 5.9.

The main goal of the Semantic Versioning system is to keep a track of rapidly moving software release targets. Because of this new stability, the Laravel framework package is officially adopting the more traditional semantic versioning.


2. Job middleware


Instead of manually adding extra boilerplate code around your jobs, you can now extract it into middleware and then just attach it to the job!

Facilitated by Taylor Otwell, Job Middleware is a feature that allows jobs to run through Middleware. It helps you avoid custom logic in the body of your job's handle() method.



3. Laravel UI


The Laravel 5.x had the front head Scaffolding and with Laravel 6.0, it has been extracted into a separate Laravel/UI Composer package. Now, you can iterate first-party UI scaffolding on separate primary framework.


4. Declaration Of Primary Key Type



Laravel 6.0 has received performance optimizations for integer key types. If you are using a string as your model's primary key, you should declare the key type using the $keyType property on your model:
/**
 * The "type" of the primary key ID.
 *
 * @var string
 */
protected $keyType = 'string';

5. String & Array Helpers Package


All str_ and array_ helpers have been moved to the new laravel/helpers Composer package and removed from the framework. If desired, you may update all calls to these helpers to use the Illuminate\Support\Str and Illuminate\Support\Arr classes. Alternatively, you can add the new laravel/helpers package to your application to continue using these helpers:
composer require laravel/helpers

In addition to the new logo below, you can also find a fresh new redesign of the Laravel.com website.



I hope it can help you...

Post a Comment

4 Comments

  1. Replies
    1. You can check it above blogs OR if you want to check changes in official doc then please refer https://laravel.com/docs/6.x/releases release note. Thanks for comments.

      Delete
  2. Wow! Nice Article.

    ReplyDelete