Laravel 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:

VersionPHP (*)ReleaseBug Fixes UntilSecurity Fixes Until
6 (LTS)7.2 – 8.0September 3rd, 2019January 25th, 2022September 6th, 2022
77.2 – 8.0March 3rd, 2020October 6th, 2020March 3rd, 2021
87.3 – 8.1September 8th, 2020July 26th, 2022January 24th, 2023
98.0 – 8.2February 8th, 2022August 8th, 2023February 6th, 2024
108.1 – 8.2February 7th, 2023August 6th, 2024February 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

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

Your email address will not be published. Required fields are marked *