#76 - The Laravel Bootcamp is back š, The `match` Expression š, Clockwork š¦, Why are Event-Driven Systems Hard? š, higher-order ā orWhere š”
š§± Laravel
š The Laravel Bootcamp is back! (X post)
Laravel Bootcamp returns with a new PHP Fundamentals mini-course. Both are free, ideal for beginners to PHP or Laravel, offering foundational insights.
Laravel Notifications: dynamic channels, priority, and delayed sending (8 minute read)
This article demonstrates how to implement delayed email notifications in Laravel, ensuring low-priority emails are sent only during work hours. It introduces notification priorities, dynamic channels, and a summary system, enhancing user experience without API alterations.
Using the new session cache in Laravel (3 minute read)
Laravel's new session cache feature, introduced in the 12.x release, allows caching data specific to a user's session. This simplifies managing temporary, user-specific data with session-level isolation and automatic cleanup.
Laravel 12.30 introduces atomic key deletion for Redis cache tags, fixes SQS FIFO queue handling, adds ordinal position support in validation messages, and allows arbitrary macro registration in Benchmark. It also enables newer phiki versions.
š” Tip of the Week
Laravel allows you to fluently chain Eloquent scopes using the higher-order ā orWhere method. This improves the readability of queries by eliminating the need for explicit closures.
use App\Models\User;
// Retrieve users who are either verified or active
$users = User::verified()->orWhere->active()->get();
š PHP
Dealing with Warnings in PHP, the Right Way (3 minute read)
The article introduces a Warning utility for PHP, allowing developers to handle warnings more effectively by converting them into exceptions or silencing them, enhancing error management and reducing log noise.
š The match Expression in PHP (6 minute read)
Discover the power of PHP's match expression, introduced in PHP 8.0, for cleaner and more maintainable code. Learn through practical examples, including its use with enums and multiple conditions.
No more down migrations in Tempest (3 minute read)
Tempest 2 introduces a significant shift in database migrations by adopting a forward-only approach, inspired by Spatie's practices. It eliminates nullable return statements, simplifying the process and encouraging consistency.
š¦ Package of the Week
Clockwork is a PHP development tool providing insights into application runtime, such as requests, performance metrics, logs, and more, directly in your browser. It supports HTTP requests, commands, queue jobs, and tests.
⨠Misc
How tech companies measure the impact of AI on software development (27 minute read)
The article explores how 18 tech companies, including Google and Microsoft, measure AI's impact on software engineering. It highlights metrics like time savings and developer experience, emphasizing the balance between speed, quality, and maintainability.
š Why are Event-Driven Systems Hard? (5 minute read)
Explores challenges and strategies in large-scale event-driven systems, including schema evolution, distributed tracing, dead-letter queues, idempotency, and eventual consistency, ensuring resilient and scalable architectures.
AI is good news for Australian and European software engineers (3 minute read)
AI programming tools enhance productivity by pairing skilled engineers with LLMs. Hiring off-peak engineers from places like Australia optimizes resource use, ensuring efficient AI operations during peak U.S. hours.
Bypassing Content-Security-Policy with <base>! (3 minute read)
Explore how the <base> tag can bypass Content Security Policies, enabling XSS attacks. Learn to mitigate risks by preventing <base> in user input, injecting your own, and configuring base-uri directives.



