{"id":17379,"date":"2023-05-25T14:03:00","date_gmt":"2023-05-25T12:03:00","guid":{"rendered":"https:\/\/ezway-technology.com\/laravel-10-features-and-updates\/"},"modified":"2026-03-30T15:38:00","modified_gmt":"2026-03-30T13:38:00","slug":"laravel-10-features-and-updates","status":"publish","type":"post","link":"https:\/\/ezway-technology.com\/en\/laravel-10-features-and-updates\/","title":{"rendered":"Laravel 10: Features and Updates"},"content":{"rendered":"\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\tWith the growing demand for exceptional services and updates in the market, the Laravel core team is determined to leave no stone unturned in making Laravel the top choice for business owners. It is with this in mind that they present their latest investment in the franchise: Laravel 10. In this article, we will introduce you to the new features and updates in Laravel 10 that will capture the attention of developers and business leaders and encourage them to upgrade their existing Laravel applications. <\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t Laravel and its official packages follow the Semantic Versioning methodology, which involves releasing major framework updates once a year during the first quarter. Minor updates may be released concurrently as needed. With the release date of Laravel 10 set for February 13, 2023, the latest version of the framework has arrived, bringing new features and significant updates. Previously, a new version of Laravel was released every six months. However, after the release of Laravel 9 in February 2022, the core team adopted an annual release schedule, as follows: <\/p>\n <\/p>\n <\/p>\n According to the official Laravel information page<\/a>, Laravel 9 will receive scheduled bug fixes until August 8, 2023, and security patches until February 6, 2024. Laravel 10 is expected to receive bug fixes until August 6, 2024, and security patches until February 4, 2025. <\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t L’\u00e9quipe derri\u00e8re le framework<\/b> s’efforce toujours d’apporter le meilleur \u00e0 ses utilisateurs, c’est pourquoi il est recommand\u00e9 d’utiliser des contraintes de version telles que ‘^10.0’ lorsqu’on fait r\u00e9f\u00e9rence au framework ou \u00e0 ses composants dans une application ou un package. Car, les nouvelles versions peuvent \u00eatre accompagn\u00e9es de modifications et de mises \u00e0 jour notables. La version actuelle de Laravel 10<\/b> comprend \u00e9galement plusieurs am\u00e9liorations substantielles qui b\u00e9n\u00e9ficieront aux propri\u00e9taires de produits. Examinons ces changements de plus pr\u00e8s : <\/p> Laravel 10 no longer supports PHP 8.0, and you should upgrade to PHP 8.1 or 8.2. While it’s not necessary to immediately update your Laravel applications to the latest version upon release, thorough testing is always recommended, especially for projects with clients or paid staff. Additionally, support for Predis v1 ended with PHP 8.0, and you should upgrade to Predis v2. <\/p> Laravel Pennant is a simple and lightweight feature set that allows you to easily deploy new features within your application. It includes an A\/B testing interface, supports trunk-based development strategies, and more. Feature flags allow you to enable or disable a feature at runtime without modifying the code. <\/p> Laravel offers a simple and comprehensive API for the Symphony Process component, allowing you to easily run external processes within your Laravel application. This process functionality addresses common use cases, providing a significantly improved development experience. <\/p> With Laravel 9, the “–invokable” flag had to be added after the `artisan` command when creating a new invocable rule. However, in Laravel 10, you can simply run the following command to create a new invocable rule: <\/p> php artisan make:rule CustomRule<\/span><\/p><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t The template code is simple and easy to understand, which makes it less intimidating for developers to create their own custom validation rules.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t In the past, Laravel used DocBlocks in its skeleton code to clearly explain the function of a particular piece of code and the responses or parameters it provides. However, with the new type declarations, all user code within the framework will now include type hints and return types. These improvements offer additional benefits and do not affect backward compatibility with the core framework. This includes method arguments, return types, the removal of unnecessary annotations where possible, the exclusion of the `Types` property, and allowing users to access closure arguments. <\/p> In Laravel 10, the ‘dispatchNow()’ method was removed because it was deprecated in Laravel 9 in favor of ‘dispatchSync()’. It is essential to replace it in all your existing projects, as it is a break change, but the solution is simple. <\/p> With the recent Laravel update, the team is gradually removing deprecated methods from Laravel 9 into the Laravel 10 branch. The updated Laravel documentation regarding the update process, including a list of all deprecated methods and packages, is available in the documentation. <\/p> Those planning to upgrade their projects to Laravel v10 will need to rewrite their code with a new approach to achieve the desired result. Here are some of the deprecations and removals from branch 9 to the main branch: <\/p> It’s important to note that Laravel is an open-source framework, so every time you install a new instance on your device, you own the codebase. Even if your version is no longer supported, your application will still work. However, you will be responsible for maintaining the version yourself. It’s advisable to prioritize stability over framework updates. Only consider upgrading to Laravel 10 if: <\/p> <\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t With the official release of Laravel v10, updating your current Laravel application to the new version will be a breeze with Laravel 10.x Shift. This tool automates the upgrade from Laravel 9 to Laravel 10, saving you up to two hours of valuable time. It’s important to note that both Laravel and Laravel 10.x Shift will receive regular updates, and Shift users can request a new update as needed. <\/p>\n To upgrade your current Laravel application to Laravel 10, a few essential conditions must be met:<\/p>\n The Shift automates most of the updates described in the Laravel Update Guide, including the following :<\/p>\n In addition to the core updates, Shift also provides additional updates mentioned in the Laravel Update Guide, such as:<\/p>\n Although the Laravel 10.x Shift aims to automate as many updates as possible, there may be some updates that cannot be automated. In such cases, it detects these updates and provides detailed instructions as comments in the pull request, outlining the steps required for manual implementation. <\/p>\n While The Shift Project strives to detect and automate updates for popular dependencies, manual implementation may still be necessary. It is recommended to review the changelog for dependencies and any additional changes to ensure a successful update. <\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t We hope this article has given you a comprehensive overview of the latest version of the framework. If you’re a business owner hesitant to upgrade your existing Laravel application to Laravel 10, or if you’re considering a new project and wondering whether Laravel is the right solution for your needs, we highly recommend partnering with a Laravel development company like Ezway Technology<\/a>. Our team of experts will guide you through every step of your web application development, minimizing any stress or concerns you may have. <\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":" Laravel 10: Features and Updates With the growing demand for exceptional services and updates in the market, the Laravel core team is determined to leave no stone unturned in making Laravel the top choice for business owners. It is with this in mind that they present their latest investment in the franchise: Laravel 10. In […]<\/p>\n","protected":false},"author":3,"featured_media":12889,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[82],"tags":[],"class_list":["post-17379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"acf":[],"yoast_head":"\nLaravel 10, date de sortie<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n
What's New in Laravel 10: Latest Features and Updates<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
Removal of support for PHP 8.0<\/h3>
Introduction to Laravel Pennant<\/h3>
Easy process management<\/h3>
Validation rules that can be invoked by default<\/h3>
Skew code of the application with type declarations<\/h3>
DispatchNow() removal<\/h3>
Laravel 9 Depreciations<\/h3>
Should you upgrade to Laravel 10?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\tHow to upgrade from Laravel 9 to Laravel 10 <\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
Requirements<\/h3>\n
\n
Basic updates<\/h3>\n
\n
Additional updates<\/h3>\n
\n
Manual updates<\/h3>\n
Conclusion<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t