Laravel 7 arrives with improvements in speed, components and more

laravel

Laravel development team unveiled recently the release of the new version 7 of your PHP framework a few months after Laravel 6 was released.

This is a major new version of the framework with many new features, including Laravel Airlock, improvements in routing speed, andBlade component tickets, custom Eloquent conversion, HTTP developer-centric client, CORS support and much more. 

What's new in Laravel 7?

This new version of the framework presents a very interesting new feature which is named "Laravel Airlock" which provides an ultra-light authentication system for SPA (single page app), Simple token-based APIs and mobile apps.

Basically what allow Airlock to each user, it is in your application to generate multiple API tokens for your account. These tiles can be assigned skills / scales that specify the actions that the tiles can perform.

Moreover Blade Component have been revised to allow tag-based rendering, attribute management, component classes, online view components, etc. According to the development team, This redesign of the Blade components is very important. As such, you should refer to the complete documentation on Blade components for more information on this feature.

We can also find in this new version of Laravel 7 a minimal and expressive API around the HTTP Guzzle client, allowing you to quickly make outgoing HTTP requests to communicate with other web applications. The Laravel wrapper around Guzzle focuses on the most common use cases and an enjoyable development experience.

Also new method is included to match compiled and cached paths that have been cached. In large applications (for example, applications with 800 or more routes), these improvements can lead to an improvement in speed, which is approximately twice the number of requests per second in a simple "Hello World" benchmark. You do not need to make any changes to your application.

Laravel's Illuminate class offers a variety of useful functions to handle character strings. Laravel 7 now offers a more fluid and object-oriented character management library in addition to these features.

In previous versions of Laravel, the database queue was not considered robust enough for use in production, due to deadlocks.

However, Laravel 7 makes improvements in applications that use MySQL 8+ as a database queue. Using the FOR UPDATE SKIP LOCKED clause and other SQL enhancements, the database driver can now be used safely in higher volume production applications.

Another major change is that now the configuration of multiple «mailers» is allowed for a single application.

Each mail application configured within the configuration file can have its own options and even its own unique "transport", allowing your application to use different email services to send certain email messages.

By default, Laravel will use the mail program configured as the mail program in its configuration file.

While the default Markdown mail template has received a new design and more modern based on the Tailwind CSS color palette. Of course, this template can be published and customized according to the user's needs.

For example, your application could use the postmark to send transactional mail while using Amazon SES to send bulk mail.

Last but not least, it is the new support of Part one to configure cross-origin resource exchange request responses (CORS) by integrating the popular Laravel CORS package.

Laravel 7 includes a large number of changes, which you can know its details and other information in lrelease of the release, as well as the links to get the new version.

The link is this. 


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.