blog image

New features of Laravel 8

Laravel 8 is now released and includes many new features including Laravel Jetstream, a models directory, model factory classes, migration squashing, rate-limiting improvements, time testing helpers, dynamic blade components, 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.



Updated Landing Page

When you enter the homepage on a brand new install, the page that gets displayed has had a facelift and is currently engineered with air current CSS. It comes in lightweight and dark versions. It ties to Laravel ?s numerous SaaS merchandise also as community pages.


New Default App / Models Directory

Instead of going the model category within the root app directory, Laravel eight currently ships with the Associate in Nursing app/models directory, as in previous versions of Laravel.

According to a poll, over eighty p.c of developers created the Associate in Nursing app/models directory themselves.


Removed Controller's Namespace Prefix

In previous versions of Laravel, you'll use a property named $namespace in RouteServiceProvider.php to mechanically prefix your controller's namespace by applying App\Http\Controllers.

Laravel might have double prefixed your namespaces if you were mistreatment the due syntax in your net.php route's code. This property has been removed from Laravel eight, thus you'll import the controller categories to your routes file with no issues.


Blade element Attributes

If you extended a Blade element in Laravel seven the kid Button wouldn't have transferred the attributes. In Laravel eight, the $attributes are usable for all kid parts, creating it easier to form extended parts.


Database Schema merchandising

If you're operative on a giant application with an oversized range of information migrations, Laravel eight features a new perform referred to as schema merchandising to assist you to clean them up.

You can run PHP skilled worker schema: dump, that creates Associate in Nursing SQL come in the information/schema directory that contains your information's complete schema as raw SQL.

If you run PHP skilled worker migrate, it'll initial rummage around for a schema file to run so any traditional migration files.


Queued Job Batching

Work batching is another new feature of Laravel eight. you'll currently send many jobs to the queue at the same time, referred to as a batch, to be processed at the same time, forward you've got enough queue workers running.


Maintenance Mode

In Laravel seven, if you run PHP skilled worker down and below to put your website in maintenance mode once deploying your application, so run musician as a part of the preparation, your application throws errors once it updates the dependencies and writes the autoload file.

This means your finish users can see a slippage rather than the upkeep mode page. Laravel eight solves this downside. you'll currently transfer the read name to the render flag as a part of the skilled worker down the order.

Ultimately, Laravel is a better framework than others majorly due to the coding pattern which is the most favoured for its elegant look. Along with this, it also supports robust application development in no time.

Laravel Web Development is dominating the web industry immensely. This web technology has made its way into the agile market by delivering scalable and robust web applications to businesses worldwide.

Today Laravel is the most preferred choice among developers as it provides great benefits to enterprises. In the coming days, Laravel has great achievements.  

1657 comments
Leave A Reply