PHP 8.5 is here, and it's packed with features that will change how you write Laravel applications. If you're still on older versions, now's the time to upgrade and take advantage of what the latest release offers.

Readonly Properties Get Even Better

Laravel developers already love readonly properties for clean, immutable models and DTOs. PHP 8.5 expands this with readonly function parameters, letting you mark any parameter as readonly directly in the function signature.

This means safer, more predictable code when passing objects through your controllers and services. No accidental mutations sneaking in from nested logic.

Asymmetric Visibility for Properties

One of the biggest wins in PHP 8.5 is asymmetric visibility. You can now have a property that's public for reading but private for writing, or vice versa. This is gold for Laravel model attributes and API responses.

Instead of creating getter methods or computed properties, you define visibility once and Laravel just works. Your code is cleaner, your intent is clearer, and you're writing less boilerplate.

Improved Type Unions and Intersection Types

Type safety in Laravel gets a serious boost. PHP 8.5 refines how unions and intersections work, making them more flexible and powerful for building typed DTOs and repository interfaces.

This means better IDE autocomplete, fewer runtime errors, and code that documents itself. When your team reads a method signature, they immediately understand what types flow through your application.

Native Support for Array Unpacking with String Keys

Array unpacking in PHP 8.5 now works seamlessly with string keys, not just numeric ones. For Laravel developers building config arrays, merging request data, or combining query results, this is a massive quality-of-life improvement.

No more workarounds with array_merge. Your spread operator just works, making middleware chains and config composition feel natural.

Fibers for Concurrent Request Handling

PHP 8.5 improves Fiber support, making concurrent execution smoother. If you're building high-throughput Laravel APIs or queue workers, Fibers let you handle multiple I/O operations without blocking.

Imagine processing multiple database queries or external API calls simultaneously within a single request, all without threads. That's what modern Fibers enable in Laravel.

How to Start Using PHP 8.5 in Your Laravel Project

Upgrading is straightforward if you're on Laravel 13 and PHP 8.2 or higher. Test your dependencies, run your test suite, and roll out gradually to production. Most popular Laravel packages already support PHP 8.5.

If you're building a new Laravel project and want these features out of the box, work with a team that stays current with the ecosystem. A SaaS MVP built on modern Laravel and PHP 8.5 starts faster and stays maintainable longer.

PHP 8.5 isn't just incremental updates; it's a shift toward cleaner, safer, more concurrent Laravel applications. If you're ready to modernize your codebase or start a new project, now's the perfect time.