Laravel 8 PHP framework released
Web development on the Laravel framework is rapidly popularizing thanks to open source. That's why the release of Laravel 8 on September 8 was a big event in the world of web programming. An open-source Framework allows you to minimize time and effort for creating projects. The advantages of this technology are security, a variety of libraries, tools, and MVC models. This Framework is especially good when developing multilingual applications. Easy-to-use testing and widgets allow you to achieve better results with minimum effort.
Laravel Jetstream
Jetstream is a well-designed application scaffolding for Laravel. This new product provides the perfect starting point for creating a web portal that includes the following:
- Account Registration and Authorization;
- Email Verification;
- Two-Factor Authentication;
- Session Management;
- API Support via Laravel Sanctum;
- Optional Team Management.
Jetstream is an improved replacement for the legacy scaffolding of earlier Laravel versions. Jetstream is designed using Tailwind CSS and offers users a choice of Livewire or Inertia scaffolding.
Model Factory Classes
Eloquent Model factories in Laravel 8 are class-based. The relationships between factories have been significantly modernized and improved. I think you’ll agree that the new syntax for generating records via the new and improved model factories is just awesome.
Actually, the model factory now represents a regular PHP class. Changes to any states in the updated version of the framework can be written as class methods. If required, additional helpers can be added to the Eloquent model to simplify and speed up the project.
Models Directory
Laravel users always complained about the lack of a model directory. The framework developers have added a standard app/Models directory in response to numerous requests of the users. Here you can save your own Eloquent models. The updated version provides and improves all the necessary generator commands. The new models directory has been taken into account, making it much easier to work with Eloquent models. If the directory doesn’t already exist, one will be created for you, along with your new model within the app/ folder.
Migration Squashing
The number of migrations increases at each stage of the web application development, which makes bulky migration folders and can lead to bloating of the directory size. The updated version of Laravel allows you to squash migrations into a single SQL file. This file will be executed first when running migrations, followed by any remaining migration files that are not part of the squashed schema file. Squashing existing migrations can decrease migration file bloat and possibly improve performance while running tests.
Tailwind CSS pagination
Laravel 8 pagination is using Tailwind CSS. It is fully customizable and optimized for working with a specific web project, and allows you to create original imaginative designs. You can forget about the tiresome optional styles, which were very annoying because of the difficulties of overriding. But Bootstrap 3 and 4 views will still remain available just like in previous versions of the framework.
Batch processing
The feature facilitates batching jobs and actions after batch creation is complete. Bus batch() is an updated feature that is used for a batch of jobs. This feature is very useful in conjunction with callbacks. The then, catch, and finally methods are allowed to define the end of the callback. Each callback has its own Illuminate\Bus\Batch.
If you need more detailed information about Laravel updates or features please feel free to contact the DEVNRISE web development agency. Here you may order the creation of a business website, web application, or an online store.
The publication is prepared by Igors Babics (Mba) based on the information received from Laravel.