{"id":13025,"date":"2023-02-18T01:12:56","date_gmt":"2023-02-18T06:12:56","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=13025"},"modified":"2023-02-18T01:13:02","modified_gmt":"2023-02-18T06:13:02","slug":"laravel-10-release-php-81","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/laravel-10-release-php-81\/","title":{"rendered":"Laravel 10 Release With Dropped PHP 8.0 Support"},"content":{"rendered":"\n
This week the Laravel 10 Release framework was released with minimal PHP 8.1 requirements and revised major release schedule. As from Laravel 9, the core Laravel team switched to an annual release schedule. This started back in 2021 when the release was shifted to accommodate the release of Symfony 6.0 back in November 2021. Going forward these two released with be aligned. In a nutshell instead of two major releases a year, there will just be one major release in February. That will see the release of Laravel 11 in February 2024.<\/p>\n\n\n\n
For the active releases of Laravel, the following are the expected bug fixes and security<\/a> updates schedule:<\/p>\n\n\n\n PHP 8.1 is the minimum required PHP version in Laravel 10 with the introduction of Predis, the robust Redis client for PHP<\/a> for caching has gotten an update in this new versions. Laravel formerly supported both Predis 1 and 2, but starting with Laravel 10, the framework<\/a> no longer supports Predis 1.<\/p>\n\n\n\n Other official Laravel<\/a> packages that have been updated to support Laravel 10 include:<\/p>\n\n\n\n As mentioned above, Laravel Pennant is a new package that provides Feature Flags for your applications. Feature flags enable you to incrementally roll out new application features with confidence, A\/B test new interface designs, compliment a trunk-based development strategy, and much more.<\/p>\n\n\n\n Next we have the Process layer for Laravel. This is a Laravel Process service that makes testing and running CLI processes easy to work with. Out of the box, this process layer includes the following rich features:<\/p>\n\n\n\n Native type declarations in the application skeleton code has now got native type ceclarations. This means that any code in userland generated by the framework will have type-hints and return types. With this feature, types are being added in a way that brings the latest PHP type-hinting features to Laravel projects without breaking backward compatibility at the framework level.<\/p>\n\n\n\n Starting in Laravel 10, invokable validation rules are now the default. If you were to make an invokable validation rule in Laravel 9, you would need to add an With the new String Password helper, the For these and more details with practical examples highlighting the Laravel 10 release features please visit the official release notes<\/a> and the announce page<\/a> as listed below.<\/p>\n","protected":false},"excerpt":{"rendered":" This week the Laravel 10 Release framework was released with minimal PHP 8.1 requirements and revised major release schedule. As from Laravel 9, the core Laravel team switched to an…<\/p>\n","protected":false},"author":1,"featured_media":13026,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,25,13,16,18],"tags":[252,344,350,424,433,452,544,1262,591,635,636,638,643],"yoast_head":"\n\n
Highlights of Laravel 10 Release<\/h2>\n\n\n\n
readonly<\/code> properties and
array_is_list<\/code> among others which are features of PHP 8.1. Laravel 10 Release and Laravel 9 too, also comes with support for PHP 8.2 which was released on December 8, 2022.<\/p>\n\n\n\n
\n
\n
fake()<\/code><\/li>\n\n\n\n
--invokable<\/code> flag after the Artisan command. This is no longer necessary because all Laravel 10 rules are invokable by default.<\/p>\n\n\n\n
Str::password<\/code> method can generate a secure, random password of a given length. The password will consist of a combination of letters, numbers, symbols, and spaces. By default, passwords are 32 characters long.<\/p>\n\n\n\n