The latest update brings a suite of enhancements. Key features include introducing a throttle method for LazyCollection and adding enum support in the mapInto collection method. Additionally, a new required_if_declined validation rule is added. The update also introduces an afterQuery hook to run post-query operations and a comprehensive Exceptions facade to streamline exception testing.
"Behind Laravel" is a new series that offers an inside look at the process behind Laravel's first-party packages.
The first episode dives into Laravel Reverb with its creator, Joe Dixon. Discover the challenges and insights behind this powerful tool.
Learn how to implement the Strategy Design Pattern in Laravel to enable dynamic behavior changes within your applications. This approach helps maintain a flexible and maintainable codebase without modifying existing code.
💡
Tip of the Week
You can set CarbonImmutable as the default date handling implementation to ensure immutability in date operations, preventing accidental modifications to your date instances. Simply add Date::use(CarbonImmutable::class); to the register method of your AppServiceProvider.
This PHP RFC proposes the introduction of property hooks, allowing developers to override default get and set behaviors of properties and enabling more robust and flexible property management without the need for magic methods. After years and some attempts, it seems it will be accepted!
Check out this Reddit discussion on various ways to determine if an array is empty. Contributors debate methods like empty($array), [] === $array, and count($array) === 0, discussing their nuances and impact on futureproofing code. Join the conversation to gain insights into the pros and cons of each approach.
Explore the importance of coding to interfaces in PHP, illustrated with a practical example of implementing a chatbot using different AI providers. This approach fosters flexibility and adherence to SOLID principles.
Discover Saloon, a PHP package designed to simplify API integrations and SDK development. Featuring a clean, reusable class-based system built on Guzzle, Saloon offers features like caching, OAuth2, and full Laravel support.
Explore strategies for successfully upgrading legacy projects, focusing on overcoming resistance and incremental improvement techniques to modernize effectively and minimize disruption.
Spatie, a small team that has significantly impacted the open-source community with their packages, has hit a phenomenal milestone of 1 billion downloads! They're celebrating with a special website featuring their journey and a quick game with prizes. Discover their story and join the celebration.
Get The Laralist in your inbox
Keep up with Laravel in 5 minutes. Get the most important Laravel, PHP, & package news and reads every Sunday for free.