In this document, We've covered "What's new in Laravel 9.0" with covered updates, new features, how to upgrade to Laravel 9.0, and migrate from Laravel 8.0 to 9.0. Read in detail: https://wpwebinfotech.com/blog/new-in-laravel-9-0/
2. Laravel is:
Flexible, scalable, and adaptable.
able to create web applications
of every size.
strictly follows the MVC
architectural pattern.
praised for its slick and elegant
syntax.
Laravel is a PHP web
application framework
with expressive,
elegant syntax.
3. What’s New in
LARAVEL 9 ?
Laravel 9 is the next long-term support version (LTS) that will
receive bug fixes until February 2024 and security fixes until
February 2025.
Here are some of the major features:
4. Feature 1
Controller Route Groups
Laravel 9 lets us define common routes as controller group routes,
making route definition more readable and easy. Let’s see how it looks
5. Feature 2
Minimum PHP Requirement
A number of other prerequisites will be specified within the future with
regards to Laravel 9. You will need PHP 8, PHPUnit 9, as well as other
prerequisites.
The Laravel framework depends on several community-driven and Symfony 9 libraries.
6. Feature 3
Anonymous Migration Classes
Laravel sets to introduce anonymous stub migration as a default behavior when you execute the
popular migration command:
When you execute the popular migration command in Laravel, anonymous stub migration is
the default behavior:
10. Feature 10
Full Text Indexing
Laravel 9 also includes full-text indexing for MySQL and PostgreSQL. New migrations will
include a fulltext() method and a whereFulltext() method on your Eloquent builder.
Feature 11
Enum Attribute Casting
11. Feature 12
Simplified Accessors & Mutators
Laravel’s getXAttribute and setXAttribute API for declaring accessors and
mutators will remain unchanged, but a simplified approach will be
recommended going forward.
12. Feature 13
PHP 8 String Functions
Because Laravel 9 targets PHP 8, Laravel merged this PR, suggesting using
the new string functions in PHP 8. The class /Illuminate/Support/Str uses
functions str_contains(), str_starts_with(), and str_ends_with().
13. Feature 14
New Query Builder Interface
With Laravel 9, developers will still be able to take advantage of the new query
builder interface for type hinting, refactoring, and static analysis.
14. Feature 15
Bootstrap 5 Pagination Views
Laravel 9 also includes full-text indexing for MySQL and PostgreSQL. New migrations will
include a fulltext() method and a whereFulltext() method on your Eloquent builder.
15. Feature 16
Checked/Selected Blade Directives
Ashley Allen and Taylor Otwell contributed, checked, and selected Blade directives. In the older
version, we had to specify a specific condition for selecting the checkbox and dropdown.
Laravel’s version 9 addresses this issue by adding @checked and @selected blade components for
selecting data, and it will only select data if a specific condition is met.
Feature 17
Improved route: list CLI Output
16. wpwebinfotech.com +1 848 228 2080 sales@wpwebinfotech.com
Know More: What’s New in the Latest Major Release of Laravel
Contact Us!