Using interfaces in third-party packages
– svenluijten.com - submitted by Sven – Edit
How to effectively use interfaces to make your PHP package easier to work with and more customizable than ever before.
Read more [svenluijten.com]
– svenluijten.com - submitted by Sven – Edit
How to effectively use interfaces to make your PHP package easier to work with and more customizable than ever before.
Read more [svenluijten.com]
– www.youtube.com - submitted by Andrew Cairns – Edit
Take a quick look at what is a Command Bus and develop a mental model on how to think about it and it's purpose.
Read more [www.youtube.com]
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"As a Laravel developer, this is the one newsletter I most look forward to. Freek has a talent for distilling packages or techniques down to something immediately useful - one tip can save you hours and even weeks. It's concise and practical and highly relevant."
– ohdear.app – Edit
Recently, people started talking about a malware called “Androxgh0st” specifically targeting Laravel apps. In a recent edition of Securing Laravel, Stephen Rees-Carter wrote a good explanation of how it works. The malware targets apps with APP_DEBUG set to true. When enabled, Laravel will give…
Read more [ohdear.app]
– www.youtube.com - submitted by Chris Fidao – Edit
We see how to configure Nginx to run Laravel in a subdirectory. The configuration is tricky, here's an explanation of it!
Read more [www.youtube.com]
– chriswhite.is - submitted by Chris White – Edit
I'll show you how to run Laravel Octane with the new FrankenPHP support inside a Docker container to serve your Laravel application.
Read more [chriswhite.is]
by Freek Van der Herten – 2 minute read – Edit
We released a mini package called spatie/holidays that can calculate the public holidays of a country.
by Freek Van der Herten – 2 minute read – Edit
Last week, we released a new package called Laravel PDF that allows you to transform Blade views into PDFs. Under the hood, Chromium is used to perform the transformation. Because Chromium is an up-to-date browser, you can use any modern CSS you like.
Some people have asked if they can use Tailwind to style their documents. And I’m happy to report you can. Let’s take a look at a minimal example to showcase this.
A lot is changing in Laravel 11, including setting up middleware. This post explores how to do it and a lingering question I have after learning about it.
Read more [dev.to]
– blog.oussama-mater.tech - submitted by Oussama Mater – Edit
LLaravel offers an elegant method-calling feature called Facades. At first glance, they resemble static methods, but well, they are not! What kind of magic is Laravel doing?
Read more [blog.oussama-mater.tech]
– seankegel.com - submitted by Sean Kegel – Edit
A comprehensive guide for creating custom Data Transfer Objects (DTOs) to enhance readability, efficiency, and testability in Laravel API integrations.
Read more [seankegel.com]
– davorminchorov.com - submitted by Davor Minchorov – Edit
Everyone talks about over-engineering but people rarely talk about under-engineering. Learn about the differences and how they depend on the context you are in.
Read more [davorminchorov.com]
My colleague Seb made a cool package to write complex expectations in a readable way.
Read more [sebastiandedeyne.com]
– Edit
Today, we released the ohdearapp/ohdear-pulse package, which contains Laravel Pulse cards to show you the status of your scheduled jobs, any broken links you have in your Laravel app, and uptime / HTTP performance stats.
Here’s what the scheduled jobs card looks like.

In this blog post, I'd like to tell you more about these cards.
by Freek Van der Herten – 6 minute read – Edit
We’ve released a new package called spatie/laravel-pdf, a batteries-included package to generate PDFs in Laravel apps. Under the hood, it uses Chromium to generate PDFs from Blade views. You can use modern CSS features like grid, flexbox, and even frameworks like Tailwind to create beautiful PDFs.
In this post, I’d like to introduce and demonstrate the package.
– www.youtube.com - submitted by Chris Fidao – Edit
FrankenPHP not only adds the great feature set of Caddy to Laravel, but can also compile everything down to a single executable that you can run anywhere!
Read more [www.youtube.com]
by Freek Van der Herten – 11 minute read – Edit
We’ve released a new major version of spatie/image, v3. This package makes it very easy to manipulate images using PHP.
At the same time, we’ve also released a new major version of spatie/laravel-medialibrary. This is a powerhouse package that can associate all kinds of files with Eloquent models. The latest version of this package now uses spatie/image v3 under the hood for manipulating images.
In this blog post, I’ll explain why we made new major versions and how they can be used.
– muhammedsari.me - submitted by Muhammed Sari – Edit
Mastering elation with the decorator foundation! Let's take a look at how we can leverage this simple, yet powerful design pattern in the context of a Laravel package.
Read more [muhammedsari.me]
– pestphp.com - submitted by Nuno Maduro – Edit
The PEST team just announced the release of a brand new plugin for Pest PHP: Stressless.
Read more [pestphp.com]
Learn how to detect and resolve N+1 issues in your Laravel project by using Ray.
Read more [myray.app]
– blog.oussama-mater.tech - submitted by Oussama Mater – Edit
Let's create toggleable Laravel routes for specific environments using PHP attributes.
Read more [blog.oussama-mater.tech]