logo
logo
Sign in

Will These 3 Features of v10 Kill Laravel? šŸ˜§

avatar
Kane Jason
Will These 3 Features of v10 Kill Laravel? šŸ˜§

Laravel v10 is the next major version of Laravel, planned for release on February 7th, 2023. āœØ


Whatā€™s Coming to Laravel 10?

1. PHP version update (8.1)

Laravel 10 requires the minimum version of PHP 8.1. This simply means that new features in Laravel 10 will no longer support the PHP ā‰¤ 8 versions.

2. Native-type declaration in skeleton

The declaration for this feature was made by Taylor Otwell on 14th November 2022. Laravel 10 will add type-hints and return types to all application skeleton methods.

3. New validation rule via Artisan

Using Rule Objects:

Rule objects method allows registration of custom validation rules, using the Artisan command ā€˜make:ruleā€™.

Using Closures:

The closure can be used instead of ā€˜ruleā€™ object, when the functionality of the custom rule is required only once throughout the application.

Implicit Rules:

The unique rule will not be run against an empty string. Thus, to generate a new implicit rule object, ā€˜make:ruleā€™ Artisan command with the ā€“implicit option can be used.

Here are all the major updates to Laravel 10: https://bit.ly/3ku0G3w

Conclusion

Laravel is a popular and widely-used PHP framework, and it has a large and active community of developers who contribute to and support it. While new features or changes in a new version of the framework may affect the way some developers use it or require them to update their code, it is unlikely that they would cause the framework to become obsolete or completely lose its user base.

Laravel is one prominent open-source framework that has dominated the PHP framework arena for many years due to its expressive and elegant syntax. The latest version, Laravel 10 will make it convenient to develop web apps. 

These are some features that are anticipated for its latest release. However, there can be much more to come by 7th February 2023.

collect
0
avatar
Kane Jason
guide
Zupyak is the worldā€™s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more