Laravel 10: New Features And Release Date

Websolutionstuff | Jan-11-2023 | Categories : Laravel

In our ever-changing digital landscape, staying ahead of the competition is essential. And that's precisely what we're here to talk about today: Laravel 10.

Laravel, the renowned PHP framework, has been a game-changer for web developers for years. But with each new version, it keeps raising the bar higher and higher.

Here, we're going to explore the latest and greatest that Laravel 10 has to offer. From the latest features to a highly anticipated release date, there's a lot to unpack.

So, let’s take a thrilling ride through the future of PHP web development!
 

laravel 10 new features and release date

 

When will Laravel 10 be Released?

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

 

How to install Laravel 10?

The Laravel installer has a --dev flag, which installs the master branch from the laravel/laravel repository.

laravel new test --dev

Or, if you prefer to explicitly use Composer.

composer create-project --prefer-dist laravel/laravel example-app

 

Laravel 10: New Features and Changes in Laravel

 

Drop PHP 8.0 in Laravel 10

In the laravel 10, PHP8.0 is dropped. It supports the latest version of PHP.

See the pull request on GitHub: [10.x] Drop PHP 8.0

 

Drop Predis v1

In your laravel application if you are using predis v1 the may need to upgrade to version v2. Predis v1 it seems it won't be getting any support anymore soon.

See the pull request on GitHub: [10.x] Drop Predis v1 support

See the changelog of the latest version of Predis v2

 

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.

See the pull request on GitHub: [10.x] Remove deprecated dispatchNow functionality

 

Laravel 10 Deprecated Methods

Laravel 10 is a major version release. So, it can remove many methods and features in laravel 9. In laravel 10 many methods are deprecated and removed.

List of Deprecated Methods:

 

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.

See the pull request on GitHub: [10.x] Make invokable rules default

 

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
    /**
     * Define the application's command schedule.
     *
-    * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
-    * @return void
     */
-    protected function schedule($schedule)
+    protected function schedule(Schedule $schedule): void

See the pull request on GitHub: [10.x] Uses PHP Native Type Declarations 🐘

Laravel X skeleton, generated code by make commands, starter kits like breeze and jetstream, and more.

More updates and changes come until 07-Feb-2023.

 

Conclusion

Laravel 10 is set to revolutionize the web development world. Packed with new features that boost speed, security, and tools for developers, it's going to make building websites easier and better.

The excitement surrounding Laravel 10's release is palpable. Developers worldwide can look forward to a more efficient, secure, and powerful framework that will simplify their work and help create amazing web applications.

When Laravel 10 hits the scene, it's going to make a significant difference in how we build websites, making our future web projects smoother and more advanced.
 


You might also like:

Recommended Post
Featured Post
Laravel 8 Socialite Login With GitHub Account
Laravel 8 Socialite Login With...

In this tutorial we will see laravel 8 socialite login with github account. explains how to integrate OAuth github...

Read More

Oct-25-2021

Laravel 9 whereBetween Query Example
Laravel 9 whereBetween Query E...

In this article, we will see laravel 9 whereBetween query example. The whereBetween() method is used to check value...

Read More

Oct-14-2022

Laravel 11 Livewire Multi Step Wizard Form
Laravel 11 Livewire Multi Step...

In this article, we'll see how to create a multi-step form wizard in laravel 11 Livewire. Here, we'll see step b...

Read More

Jun-17-2024

How to Add Date Picker in React JS using react-datepicker
How to Add Date Picker in Reac...

A date picker is a crucial component in many web applications, enabling users to select dates conveniently. React, a pop...

Read More

Sep-11-2023