Saturday, December 28, 2024
Google search engine
HomeLanguagesLaravel 10 New Features And Release Date

Laravel 10 New Features And Release Date

Laravel 10 new features and release date; Through this tutorial, we will show you laravel 10 new features and release date.

Laravel 10: New Features and Release Date

  • Laravel 10 Release Date
  • Laravel 10 New Features
    • Drop PHP 8.0 in Laravel 10
    • Drop Predis v1
    • Deprecate dispatchNow() Function
    • Laravel 10 Deprecated Methods
    • Laravel 10 Make Invokable Rules Default
    • Laravel 10 PHP Native Type Declaration

Laravel 10 Release Date

According to the Laravel community docs, Laravel 10 will be released on February 7th, 2023.

And also, you will see all the old version of laravel release dates; is as follows:

Version PHP (*) Release Bug Fixes Until Security Fixes Until
6 (LTS) 7.2 – 8.0 September 3rd, 2019 January 25th, 2022 September 6th, 2022
7 7.2 – 8.0 March 3rd, 2020 October 6th, 2020 March 3rd, 2021
8 7.3 – 8.1 September 8th, 2020 July 26th, 2022 January 24th, 2023
9 8.0 – 8.2 February 8th, 2022 August 8th, 2023 February 6th, 2024
10 8.1 – 8.2 February 7th, 2023 August 6th, 2024 February 4th, 2025

Laravel 10 New Features

Drop PHP 8.0 in Laravel 10

Laravel 10 supports the latest version of PHP. it’s dropped php 8.0.

Drop Predis v1

If you are using predis v1 in laravel apps the may need to upgrade to version v2. Predis v1, it seems it won’t be getting any support anymore soon.

Deprecate dispatchNow() Function

The popular dispatchNow() function is deprecated in laravel 9 and It can be removed in laravel 10. You can use dispatchSync() method instead of dispatchNow() method. It can dispatch a job immediately. So, find and replace in your application.

Laravel 10 Deprecated Methods

Laravel can remove many methods and features in laravel 10. In laravel 10 many methods are deprecated and removed; is as follows:

Laravel 10 Make Invokable Rules Default

Laravel provides a variety of helpful validation rules. Laravel will create it when you execute the Artisan command to create your rule:

php artisan make:rule Uppercase --invokable

In laravel 10, you can create a validation rule without the –invokable flag.

Laravel 10 PHP Native Type Declaration

In laravel 10, Many functions declaration is changed and it can use PHP native type declaration.

Let’s see an example.

         /**
          * Handle the User "created" event.
-         *
-         * @param  \App\Models\User  $user
-         * @return void
         */
-        public function created($user)
+        public function created(User $user): void
         /**
          * Handle the User "created" event.
-         *
-         * @param  \App\Models\User  $user
-         * @return void
         */
-        public function created($user)
+        public function created(User $user): void

Conclusion

That’s it; Through this tutorial, you have seen laravel 10 new features and release date.

Recommended Tutorials

RELATED ARTICLES

Most Popular

Recent Comments