Newslurp

<< Stories

Download Files Easily with Laravel's HTTP sink Method πŸ’Ύ, Laravel v11.38 released πŸš€, Learn Data Structures and Algorithms πŸ“˜, travel() πŸ’‘, PHP Fibers: How PHP is Finally Warming Up to Asynchronous Programming 🧡

The Laralist <hello@thelaralist.com>

January 19, 11:29 am

Download Files Easily with Laravel's HTTP sink Method πŸ’Ύ, Laravel v11.38 released πŸš€, Learn Data Structures and Algorithms πŸ“˜, travel() πŸ’‘, PHP Fibers: How PHP is Finally Warming Up to Asynchronous Programming 🧡
Meet Laravel’s `sink` method for effortless file downloads. By creating a direct pipeline from HTTP responses to your storage, it automatically handles file writing, streamlining the entire download process.
β€Š
The Laralist
19th of January, 2025
🧱
Laravel

Meet Laravel’s sink method for effortless file downloads. By creating a direct pipeline from HTTP responses to your storage, it automatically handles file writing, streamlining the entire download process.

Laravel v11.38 introduces several updates, including a new fluent Email validation rule, an action filter for route:list, and enhanced broadcasting capabilities for custom payloads across multiple channels. The release also simplifies array data retrieval in FormRequests and allows for targeted middleware assignments in resource routes.

πŸ’‘
Tip of the Week

Test time-sensitive features by manipulating time with travel() to ensure consistent and reliable outcomes.

test('checks subscription expiration', function () {
    $subscription = Subscription
        ::factory()
        ->create(['expires_at' => now()->addDay()]);
    expect($subscription->isExpired())->toBeFalse();

    $this->travel(2)->days();
    expect($subscription->isExpired())->toBeTrue();
});
🐘
PHP

Brent shares insights on PHP version usage trends, highlighting PHP 8.4's adoption a month post-release. He emphasizes the benefits of keeping up with new PHP versions for security and performance.

PhpStorm 2024.3.2 now includes built-in .env Files Support, enhancing productivity with features like syntax highlighting, code completion, and variable navigation, eliminating the need for a separate plugin.

Dive into how Fibers introduce a more asynchronous style to PHP, letting you write non-blocking, concurrent code without complicating your architecture. This article breaks down what Fibers are, how they work under the hood, and how to start leveraging them for more responsive, scalable applications.

πŸ“¦
Package of the Week

This package reveals how outdated your PHP dependencies are, measuring their β€œlibrary age” in years. By scanning composer.json and comparing versions, helps you spot technical debt early and maintain a healthier project ecosystem.

✨
Misc

Explore Core 4 framework, a unified approach to measuring developer productivity, combining principles from DORA, SPACE, and DevEx. It balances speed, developer experience, quality, and impact to enhance your team's velocity with actionable metrics and industry benchmarks.

This SitePoint article offers a straightforward, conceptual overview of fundamental data structures and algorithms. It breaks down core principles and real-world applications to help you build a solid foundation for more efficient problem-solving and system design.

β€Š
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.