📜 ⬆️ ⬇️

Laravel 5.3 release released

The Laravel Team is proud to announce the release of Laravel 5.3, available to everyone. New features in version 5.3 are aimed at improving developer speed by adding and improving out-of-box features.

This release will receive general updates for six months, and security updates for one year. Laravel 5.1 is the latest version of the LTS, including bug fixes for two years, and security fixes for three years.

Below is a brief overview of some of the highlights of the new 5.3 version.
')
image


New home page


image

The home page has received a new interface showing new packages and community resources, including links to Laracast, Laravel News and Statamic.

Laravel scout


Laravel Scout is a new driver based on full-text search in Eloquent. Scout works by adding new search capabilities to the models, synchronizing your data with the selection index, after which you can easily find the right one:

Post::search('Alice')->get(); 


Laravel passport


Laravel Passport is designed to provide you with everything you need to deploy your own oAuth 2.0 authentication server in minutes. This package is optional, although it goes “in a box” with the possibility of its easy connection, using Vue.js for generating a token, canceling a token and everything else.

Laravel Mailable and Notifications


Laravel Mailable is a new base class that is oriented to simplify the sending of email messages, eliminating the need to close styles.

Laravel Notifications allow you to send quick messages through services such as Slack, Text messages, Email and others. We even launched the " Laravel Notifications Channel " channel , which already contains more than 26 drivers, and anyone can add their own driver.

Laravel echo


Laravel Echo is an advanced existing event broadcasting system that makes it easier to work with web sockets. The Echo backend comes with the Laravel core, for which you will need to connect it through the NPM manager to work on the JavaScript side.

Migrations


The migration system received a new function that allows you to roll back several steps at once.

 php artisan migrate:rollback --step=1 

Earlier this option was absent, and in order to roll back several steps, it was necessary to enter a command each time.

Simple pagination


Laravel offers two styles of pagination. The extended style shows a list of page numbers, and a simple style that displays only links to display the previous and next pages.

Starting with this release, a simple pagination will have a separate template file for more convenient customization for the design of your project by changing the structure of HTML.

Variable Loop in Blade


Laravel Blade has received a new variable `$ loop`, providing more precise control within the loop. Now you can use the following properties:

  1. index is the cycle number.
  2. remaining - how many cycles are left.
  3. count is the total number of cycles.
  4. first - if this is the first iteration of the loop.
  5. last - if this is the last iteration of the loop.
  6. depth - how many levels of depth of the cycle.
  7. parent - allows you to call the parent in a nested loop.


Read more about the variable on Mat Staufer’s blog.

Structure change


The `app` folder is simplified by deleting all empty folders` Events`, `Jobs`,` Listeners` and `Policies`. When using artisan with `make:`, all the necessary files and folders will be created automatically.

Job queue


Eloquent Collections are now neatly serialized and re-added to queues in the same way as individual models.

This is useful in cases where the data in Eloquent Collections has changed since it was added to the queue.

Query Builder


The query designer now defaults to returning a collection instead of an array. This is a potentially critical change, but now it will hold the results from either the query designer or the Eloquent form.

Helper cache


Laravel 5.3 includes a new global `cache ()` helper, which allows you to get, change, or return data. For more information, read Mat's post.

Documentation change


For this release, the documentation section has undergone significant changes. Now it’s better divided into blocks that take you from installing Laravel to using official packages. It also contains links to relevant subject videos from Laravast. This will satisfy the needs of people who prefer audio-video training and those who love to read.

Upgrade instructions


The official documentation has an upgrade guide , which includes all the information you need to start using Laravel 5.3 today. Approximately, the upgrade will take 2-3 hours.

UPD: You can also read the Russified upgrade documentation from Laravel 5.2 to 5.3.

thank


I would like to personally thank all those who contributed to the release of this version. Adding new features was a huge challenge and everyone who helped with this deserved friendly hugs.

Join the weekly newsletter to keep abreast of all the new features, tips and tutorials that are sure to be. In addition, Laracast , like Matt Staufer , provides free information on all new features.

From translator

You can also read the Russified version of the Laravel upgrade documentation from version 5.2 to 5.3, kindly provided by Rencom .

Source: https://habr.com/ru/post/308380/


All Articles