Newslurp

<< Stories

#58 - RFC: Pipe operator v3 ➡️, Big improvements to Laravel Echo ⚡, Arr typed helpers 💡, FrankenPHP Is Now Officially Supported by The PHP Foundation 🧟, How Cursor Indexes Codebases Fast 🗂️

The Laralist <hello@thelaralist.com>

May 18, 10:30 am

#58 - RFC: Pipe operator v3 ➡️, Big improvements to Laravel Echo ⚡, Arr typed helpers 💡, FrankenPHP Is Now Officially Supported by The PHP Foundation 🧟, How Cursor Indexes Codebases Fast 🗂️
The PHP RFC introduces a "pipe" operator `|>`, facilitating function chaining by passing the left-side value as the first parameter to a single-parameter callable on the right. Voting so far is favorable, so the proposal will likely be accepted.
The Laralist
#58 - 18th of May, 2025
🧱
Laravel

This guide walks through implementing image uploads in Laravel, from basic setups to advanced solutions using Spatie packages for resizing, optimization, model integration, and a polished UI with Media Library Pro.

The latest release includes big improvements to Laravel Echo ⚡. Additionally, it adds useCurrent for date/year columns, except/exceptHidden methods for the Context class, and introduces Arr::from().

The article advises updating your code to use method calls instead of deprecated property syntax in Faker, preventing future issues with deprecation warnings in your projects.

💡
Tip of the Week

The Arr helper includes typed getter methods for retrieving values from arrays and ensuring they match the expected type.

$data = [
    'enabled' => true,
    'max_users' => 100,
    'threshold' => 0.75,
    'tags' => ['beta', 'new'],
    'name' => 'FeatureX',
];

$enabled = Arr::boolean($data, 'enabled');
$maxUsers = Arr::integer($data, 'max_users');
$threshold = Arr::float($data, 'threshold');
$tags = Arr::array($data, 'tags');
$name = Arr::string($data, 'name');
🐘
PHP

The PHP RFC introduces a "pipe" operator |>, facilitating function chaining by passing the left-side value as the first parameter to a single-parameter callable on the right. Voting so far is favorable, so the proposal will likely be accepted.

The article explores implementing a Single Sign-On (SSO) system for seamless user authentication across multiple websites. It provides a minimal example, highlighting SSO's benefits and tackling Same-Origin Policy challenges.

FrankenPHP is now officially supported by the PHP Foundation, marking a milestone in modernizing PHP's ecosystem. The Foundation will contribute to FrankenPHP's development, ensuring enhanced performance and compatibility.

Tempest, now in beta, has evolved significantly, decoupling models from databases and enhancing features like dynamic view components. It invites community involvement to refine and improve, promising a modern PHP framework experience.

📦
Package of the Week

Laravel Junie installs pre-made guideline docs for JetBrains Junie in your Laravel app, ensuring your team follows consistent coding standards. Just run one Artisan command to scaffold best practices—from general conventions and API guidelines to Livewire patterns—straight into the .junie folder.

Misc

A humorous rant passionately advocates for using plain HTML over complex frameworks. It highlights HTML's simplicity, reliability, and longevity, mocking modern trends and emphasizing HTML's enduring functionality.

Cursor's AI IDE employs Merkle trees for efficient codebase indexing, enabling fast change detection and minimal data transfer. Using embeddings and obfuscation, it offers secure, context-aware code interactions.

The article challenges common misconceptions about documentation, emphasizing its importance. It offers practical advice on creating user-friendly docs, focusing on clear, concise, and iterative improvements to enhance user experience.

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 or sharing it with your friends and colleagues.
Thank you for reading,
Mario & Javi
If you prefer not to receive future editions of The Laralist, please unsubscribe.