Browse Links
Discover all the links from our weekly collections.
A detailed postmortem of a production bug where Laravel's queue serialisation broke sharjeel's multi-tenant application. tenant context was being lost during model restoration. Sharjeel shares the debugging process and solution for safely handling tenant-scoped Eloquent models in queued jobs.
Learn about a critical PHP memory management issue where arrays don't automatically shrink after removing elements, potentially causing memory leaks in long-running applications. The article explains why this happens and provides practical solutions for clearing large arrays to prevent memory bloat.
Steve posts about the recently merged Debounceable queued jobs feature showing a nice little example of how to use them to pause messages
Learn how to use Laravel's loadMissing() method to efficiently load relationships only when needed, preventing duplicate queries and N+1 problems. A practical guide to optimizing database performance in your Laravel applications.
Acorn brings Laravel's powerful developer experience to WordPress, allowing you to use Blade templates, migrations, routing, and Artisan commands within your WordPress projects. This bridge tool enables Laravel developers to leverage familiar workflows and patterns while building WordPress sites.
A thoughtful guide on how to write application code that follows Laravel's established conventions and patterns, making it feel like a natural extension of the framework. Ryan explores practical examples like implementing fake methods for testing and using consistent entry points to create more predictable and maintainable codebases.
A comprehensive guide explaining the difference between Laravel's Gates and Policies for authorisation, with practical examples and decision trees to help you choose the right approach. Perfect for developers who want to organise their authorisation logic properly and avoid scattered permission checks across their codebase.
In Episode 4 of Ship AI With Laravel Harris walks us through how to add memory to your agents conversation. Now your agent can not only answer a customers initial question but they can help answer follow up questions as well. All this is possible thanks to the power of the Laravel AI SDK
Matt Stauffer interviews Dave Hicking, Laravel's Agency Partnership Manager, about his journey from library IT to Laravel HQ and the evolution of the Laravel partner program. They explore the strategic restructuring of partnership tiers and what real collaboration between Laravel and its agencies looks like in practice.
Have you ever had a pest test suite that has the same tests failing every now and then and you've not made a single change to the code the tests test? well then this latest version of Pest (4.5.0) has a new feature you will love. The new flaky() method has been added to that lets pest know to automatically retries that test up a a configured amount of times if the test fails in the original run before it reports it as a failure. Of course there are a number of other features in this release but this one really stood out to me as a great one.
Learn how to strengthen your Laravel HTTP tests by using Http::assertSentCount() to catch accidental duplicate API requests that Http::assertSent() alone might miss. This simple technique helps prevent subtle bugs by verifying both the content and count of outgoing HTTP requests in your test suite.
A comprehensive deep-dive into how Laravel's route binding works internally, tracing the complete lifecycle from URI matching to model resolution. This technical article explains the middleware pipeline, implicit vs explicit binding, and advanced features like scoped bindings and custom resolution logic.
Freek shares how Spatie uses Inertia v3's optimistic updates feature in their helpdesk app There There to create snappy UI interactions. He demonstrates practical examples of implementing optimistic updates for team toggles and workflow switches, showing how this feature eliminates the need for complex state management while providing instant user feedback.
I rebuilt ReactFlow but for Alpine.js and Livewire, well beyond feature parity. MIT licensed. I recently learned there had been attempts at doing this before, but none of them went as far as I did and didn't bridge it with Livewire. I also added an animation engine and everything within the flow can be updated from the server. https://x.com/HilerZac -- https://laravel-news.com/artisanflow-a-flowchart-engine-for-laravel-and-alpinejs
A comprehensive guide to getting started with Pest 4 testing in Laravel 13, showing how to build a real authenticated REST API with feature tests, validation tests, and arch tests. Perfect for Laravel developers who have been putting off testing - this tutorial makes it approachable with practical examples and clear setup instructions.
Let’s build an agentic loop in Laravel from scratch with Christoph Rumpel of the Laravel Team. He walks us through adding tool calling, create custom tools, fetch the latest Laravel release from GitHub, and make the model work with multiple tool calls in one loop. Just like a real agent.
Have you ever had to validate a request that has a large array of inputs that you don't necessarily know how many there might be? Daryl shows a neat trick to use some of the established Form Request methods to allow you to stop the dreaded N+1 when you have to validate in this exact scenario.
A practical guide to using PHP's Readalizer library to make your code more readable for both humans and AI tools. The article demonstrates how implementing code readability rules can improve AI-assisted development by ensuring consistent, understandable codebases.
In the third episode of the series Harris talks us through how to allow his support agent access to tools to allow it to look up orders in the system and give the customer a much better feedback loop with real answers.
A comprehensive guide to Livewire 4's new single-file component format that combines PHP classes, Blade templates, and scoped CSS in one file. Learn how to build real components like live search with filtering while understanding the advantages over the traditional two-file pattern.