Today we are going to talk about laravel new release laravel 10 version. We will talk about new features and changes that are in new laravel 10.
Laravel is a web application framework with expressive, elegant syntax. A web framework provides a structure and starting point for creating your application, allowing you to focus on creating something amazing while we sweat the details.
Laravel strives to provide an amazing developer experience while providing powerful features such as thorough dependency injection, an expressive database abstraction layer, queues and scheduled jobs, unit and integration testing, and more.
Whether you are new to PHP web frameworks or have years of experience, Laravel is a framework that can grow with you. We’ll help you take your first steps as a web developer or give you a boost as you take your expertise to the next level. We can’t wait to see what you build.
How to install laravel 10:
To install laravel 10 application you need to run the following Composer create-project command:
composer create-project laravel/laravel example-app
Or, you may create new Laravel projects by globally installing the Laravel installer via Composer:
composer global require laravel/installer
laravel new example-app
After the project has been created, start Laravel’s local development server using the Laravel’s Artisan CLI serve
command:
cd example-app
php artisan serve
Once you have started the Artisan development server, your application will be accessible in your web browser at http://localhost:8000
.
Laravel 10 new Features and Changes?
Laravel 10 drops support for PHP 8.0
Laravel framework will drop support for PHP <=v8.0 in Laravel 10. The minimum required version is PHP ^8.1. Browsing the comparison between master and 9.x, we can expect to see 8.1 features used in the framework, such as readonly properties.
Laravel Pennant
Laravel Pennant was developed by Tim MacDonald.
A new first-party package, Laravel Pennant, has been released. Laravel Pennant offers a light-weight, streamlined approach to managing your application’s feature flags. Out of the box, Pennant includes an in-memory array
driver and a database
driver for persistent feature storage.
Read more about the package at https://github.com/timacdonald
Language Directory
Laravel 10 you need to generate lang directory by using following command:
php artisan lang:publish
Deprecations from Laravel 9
Methods marked at deprecated in Laravel 9 are being removed in Laravel 10. We can expect the release upgrade guide to outlining all the deprecated methods, potential impact assessment, and how to upgrade closer to the release.
Here are some deprecations found in the comparison of the Laravel framework’s master
branch to the 9.x
branch at the time of writing:
- Remove various deprecations Pull Request #41136
- Remove deprecated dates property in Pull Request #42587
- Remove
handleDeprecation
method in Pull Request #42590 - Remove deprecated
assertTimesSent
method Pull Request #42592 - Remove deprecated
ScheduleListCommand
‘s$defaultName
property 419471e - Remove deprecated
Route::home
method Pull Request #42614 - Remove deprecated
dispatchNow
functionality Pull Request #42591
Testing Laravel 10
If you want to start testing Laravel 10 now, you can install it in a fresh project by using the --dev
flag:
laravel new <your-project-name> --dev
Upgrading to Laravel 10
Once Laravel 10 becomes official be sure and check out Laravel Shift for a simple and automated way to keep your application up to date.
And More…
Laravel 10 is still a few months away, and more new features and announcements will be coming out. you can always check there official post for new features and update at https://laravel-news.com/laravel-10