Will These 3 Features of v10 Kill Laravel? 😧

Will These 3 Features of v10 Kill Laravel? 😧

·

2 min read

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:

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.


Â