60 likes | 92 Vues
Despite being an open source PHP framework, Laravel has been evolving consistently to meet the emerging trends in web application development. The latest long term support (LTS) version of Laravel was released officially in August. Laravel 5.5 enables developers to accelerate web application development by leveraging PHP 7.
E N D
Laravel 5.5: What's New?
Despite being an open source PHP framework, Laravel has been evolving consistently to meet the emerging trends in web application development. The latest long term support (LTS) version of Laravel was released officially in August. Laravel 5.5 enables developers to accelerate web application development by leveraging PHP 7. At the same time, it comes with several new features, enhancements, and bug fixes to simplify custom web application development. The developers can automate the process of migrating from Laravel 5.4 to Laravel 5.5 by using third-party tools like Laravel 5.5 Shift. But it is also important for PHP programmers to understand the new features and changes in Laravel 5.5.
Overview of New Features and Changes in Laravel 5.5 Automatic Package Discovery While working with earlier version of Laravel, developers have to put extra effort to add service providers to the app configuration file and register the relevant facades. But Laravel 5.5 has the capability to detect the service providers and facades automatically. It further registers the service providers and facades without requiring any manual intervention.
Resource Classes While working with Laravel 5.5, programmers can use resource classes to accelerate API development. They are no longer required to use an additional transformation layer between the Eloquent models and JSON requests. The resource classes make it easier for programmers to convert the models and model collections into JSON without using any transformation layer.
Automatic Registration of Console Commands Earlier version of Laravel require programmer to list the custom commands manually to the console kernel through its $commands property. Laravel 5.5 enables developers to register custom commands more efficiently by calling the new load method from the kernel's commands. Once the load method is invoked, it will scan a specific directory for console commands and register the console commands found in the directory automatically.