Five new things we like about Laravel 6

Jul 23, 2020 · 1 min read

In this post we share what we appreciate most about the new release.

path

1. Vapor Laravel Compatibility - Serverless!

The new Laravel release is now compatible with serverless (awesomeness:>) Vapor Laravel. Scale infinitely with Vapor which simplifies the management of Laravel applications on AWS Lamdba. Magic!

2. Lazy Collections - Large dataset with little memory.

Laravel 6.0 gives you the opportunity to work with large datasets without consuming much memory using PHP Generators.

3. Eloquent Subquery Enhancements

Imagine we have a table of flight destinations and a table of flights to destinations. Flights contain an arrive_at column that indicates when the flight arrived at the destination.

4. Job Middleware

Job MiddleWare gives you the opportunity to wrap custom logic around driving queues, reducing the boilerplate in the job itself. In earlier versions of Laravel, you might have wrapped the logic of a job in a handle method within a rate-limited callback.

5. Improved exceptions via Ignition

Laravel 6.0 comes with Ignition, an open-source exception detail page. New features like Blade error file and number management.

Source: Fullstack world