What’s New in Laravel 10
It’s a new year, and that means we also get a new major release of Laravel! As of February 14th, 2023, Laravel has now officially bumped to version 10.
In this series, we’ll review and compare all the new features and improvements you can enjoy as part of Laravel 10. This includes support for native PHP types for all user-land code, Laravel Pennant, a new Process abstraction layer, and more!
Native Type Declaration
Let’s begin with a massive undertaking by Nuno Maduro. Laravel 10 now ships with native PHP types across all user-land and generated code. Not only that, but redundant docblocks have been removed.
Generate Secure Passwords
Next up, you’ll find a new password() method on the Str class. This method – which can be adjusted to your preferred criteria – will generate a secure password for you.
Quicker Project Scaffolding
If you haven’t updated your Laravel installer in a while, you’ll notice that the laravel new command now accepts a number of options that will expedite your initial project scaffolding. Let’s have a look at the –pest and –breeze flags.
The New Process Facade
Laravel 10 ships with a new Process facade. This facade, built on top of Symfony’s excellent Process component, allows you to easily invoke and execute shell commands, and even run them asynchronously in the background. Let’s quickly review how to use it.
Laravel Pennant
Included as part of the Laravel 10 release is Laravel Pennant: a first-party package that assists with managing feature flags for your application. Let’s have a look!
User Reviews
Be the first to review “What’s New in Laravel 10”
You must be logged in to post a review.
There are no reviews yet.