Laravel 7 stable release, twice as fast routing

Laravel 7 stable version has been released and introduces many new features, including Laravel Airlock, faster speed routing, custom Eloquent Casts, Blade label components, smooth string manipulation, new HTTP client, CORS support, and many other functions.

Before introducing new features to be noted that, starting with version 6, Laravel now follow semantic version, and will release a new major release every six months. Click here to view work release process .

Laravel Airlock

Laravel Airlock for the SPA (single-page application), mobile applications, and provides a lightweight authentication systems based on simple API token. Airlock allows each user of your application generates a plurality of API tokens for their account. These tokens may be granted function / scope, which specifies an operation performed to allow the token.

Custom Eloquent conversion

Laravel has a variety of useful built-in cast. However, sometimes you may need to define your own cast. Now, you can achieve this objective is achieved by defining interfaces CastsAttributes class.

Classes that implement this interface must define the get and set methods. get method responsible for converting the original values ​​in the database for the mandatory conversion value, while the set method should be forced to convert the value to the original values ​​can be stored in the database.

Blade element tag & Improved

Blade major components have been adjusted to allow the rendering based on the tag, attribute management, and inline view component class components. Due to changes in the components of a very wide range Blade, Blade please consult the complete assembly documentation for this feature.

HTTP client

Now, Laravel provides a strong ability to express API to Guzzle HTTP client-related, you can quickly make HTTP requests to other Web applications to communicate. Laravel's Guzzle associated wrapper to focus on its most common use cases and a good developer experience.

Route cache speed improvements

Laravel 7 provides a new method, used for matching the route Artisan: command routing cache cached. In large applications (for example, has 800 or more application routing) on ​​these improvements can make a simple "Hello World" reference requests per second 2 times faster, without having to change your application.

The above are just Laravel 7 all the new features in a small amount of content you want to view a complete list, see the release notes and upgrade guide .

----------------
Reference Links: https://learnku.com/laravel/t/41309
Author: Summer

Guess you like

Origin www.oschina.net/news/113918/laravel-7-released