Laravel 7 is now released and includes many new features including Laravel Airlock, better routing speed, custom Eloquent casts, Blade component tags, fluent string operations, a new HTTP client, CORS support, and many more features.

Before we jump into the new features we’d like to point out that starting with version 6, Laravel now follows semver and will release a new major version every six months. You can see how the release process works here.

Laravel Airlock

Laravel Airlock provides a featherweight authentication system for SPAs (single page applications), mobile applications, and simple, token-based APIs. Airlock allows each user of your application to generate multiple API tokens for their account. These tokens may be granted abilities/scopes which specify which actions the tokens are allowed to perform.

Custom Eloquent Casts

Laravel has a variety of built-in, helpful cast types; however, you may occasionally need to define your own cast types. You may now accomplish this by defining a class that implements the CastsAttributes interface.

Classes that implement this interface must define a get and set methods. The get method is responsible for transforming a raw value from the database into a cast value, while the set method should transform a cast value into a raw value that can be stored in the database

Blade Component Tags & Improvements

Blade components have been overhauled to allow tag-based rendering, attribute management, component classes, inline view components, and more. Since the overhaul of Blade components is so extensive, please consult the full Blade component documentation to learn about this feature.

HTTP Client

Laravel now provides an expressive, minimal API around the Guzzle HTTP client, allowing you to quickly make outgoing HTTP requests to communicate with other web applications. Laravel’s wrapper around Guzzle is focused on its most common use cases and a nice developer experience.

Route Caching Speed Improvements

Laravel 7 includes a new method of matching compiled, cached routes that have been cached using the route:cache Artisan command. On large applications (for example, applications with 800 or more routes), these improvements can result in a 2x speed improvement in requests per second on a simple “Hello World” benchmark. No changes to your application are required.

Find out more about Laravel v7…

These are just a few of the new features in Laravel 7 and to see a complete list check out the release notes as well as the upgrade guide.

Source : Laravel News

Contact us for More Information about Laravel Solutions and WordPress hosting Services ( WP Engine)

Related Posts

Laravel Framework

Integrate Laravel CMS for Development Process

To build web applications with desired functionalities, developers use different PHP frameworks. Each framework provides specific features that allows developers to build project functionalities easily. Laravel is one of the top PHP frameworks available to Read more…

Laravel Framework

Advantages of Using a CMS to Run Your Site

  Using a content management system (CMS) to power your site could be one of the best investments you make in your digital presence – and your business and you do need to invest – Read more…

Laravel Framework

Start your Laravel Ecommerce Store with PWA

If you want to identify which PHP-based framework is in demand today, the answer is Laravel. It is enriched with an action-packed platform, which is highly promising for all the web and app development. It Read more…