The Laravel update introduces several significant enhancements. The `session()->hasAny()` method makes it easier to check for the presence of any session keys. The Context class now includes `pull` methods, akin to those in Session and Collections. Additionally, the HTTP Factory is equipped with `Http::createPendingRequest()`, enabling the creation of PendingRequest instances for customized API interactions. Another improvement includes the ability to sort the route:list by multiple columns/factors.
The Laralist
14th of April, 2024
🧱
Laravel

The Laravel update introduces several significant enhancements. The session()->hasAny() method makes it easier to check for the presence of any session keys. The Context class now includes pull methods, akin to those in Session and Collections. Additionally, the HTTP Factory is equipped with Http::createPendingRequest(), enabling the creation of PendingRequest instances for customized API interactions. Another improvement includes the ability to sort the route:list by multiple columns/factors. For more on these updates, see the release notes for 11.3.0 and 11.3.1.

The latest addition to Laravel Prompts is the textarea() function, enhancing user interactivity with the ability to input multi-line text.

This article dives into how facades, often misunderstood, can streamline your coding and testing process. Check out the exciting discussion on this topic at r/PHP.

How does Laravel's Str::trim() function differ from PHP's standard trim()?

🐘
PHP

The PHP development team announces the immediate availability of PHP 8.3.6, 8.2.18 and 8.1.28. This is a security release.

PhpStorm 2024.1 enhances its capabilities with full line code completion with local AI, improved support for Symfony, a new terminal (Beta), enhanced Pest and PHPUnit 11.0 support, and advanced debugging functions. It also includes security checks for PHP packages and WSL distribution path support for rsync, along with frontend development updates and an IDE scaling option.

PHP 8.4 introduces grapheme_str_split, which ensures strings are split correctly and respects the unique characteristics of each grapheme cluster

The PHP RFC suggests a change in handling the mathematical operation of raising zero to a negative power. Instead of returning INF, it will now trigger a DivisionByZeroError, aligning with PHP's error handling principles.

An RFC to deprecate sessions via GET/POST and automatic URL session ID transformation in PHP is on track for approval, with deprecation in PHP 8.4 and removal by PHP 9.0.

📦
Package of the Week

The package offering an elegant UI for viewing and managing Laravel logs directly within your application. This tool simplifies log access and analysis, making it easier to debug and monitor your Laravel applications.

Misc

Jeffrey Way shares his PhpStorm setup for Laravel development in 2024, emphasizing minimalism and functionality. He opts for the default dark theme, JetBrains Mono font at 15px, and highlights the 'Laravel Idea' plugin for its deep Laravel integration. The article offers insights into efficient file navigation, recommended plugins, and tips for enhanced coding productivity in PhpStorm.

The article on Mastering Laravel examines the performance implications of adding a new column to a MySQL table. It explores the potential impact on database operations and offers insights on how to minimize any performance penalties.

We value your thoughts and feedback. Feel free to hit reply and share your ideas with us.
If you find our content helpful, please consider forwarding it to your friends and colleagues.
Thank you for reading,
Mario & Javi
If you prefer not to receive future editions of The Laralist, please unsubscribe.