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]
– 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]
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.
"I’ve been reading freeks newsletter for a while now, and it’s easily one of my favorite developer newsletters. Freek shares practical, no-nonsense insights from running Spatie, maintaining hundreds of open-source packages, and shipping real products. Every time I get useful Laravel tips, smart tooling advice, always high quality and immediately applicable."
– 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]
Here are some cool ways to structure URLs
Read more [blog.jim-nielsen.com]
– seankegel.com - submitted by Sean Kegel – Edit
This article provides a guide on simplifying API integration in Laravel using the Http Facade, with a focus on building a reusable API request and client class.
Read more [seankegel.com]
– jeffochoa.me - submitted by Jeff – Edit
Although PHP Enumerations are meant to provide an easy and elegant solution to work with a predefined set of values, these classes are often misused, resulting in a lack of consistency due to the introduction of all sorts of methods that increase their complexity. In this article, we are going to go through some practices (both good and bad) with the goal of clarifying the understanding of these types of objects to help you build a more resilient and consistent codebase.
Read more [jeffochoa.me]
– daryllegion.com - submitted by Daryl Legion – Edit
Duplicate form submissions or requests can be a common issue in web applications, often leading to unintended consequences. Laravel offers a straightforward solution to prevent these duplicates by using atomic locks.
Read more [daryllegion.com]
No suprises here: UTF-8 is the most popular encoding for data in transfer and at rest.
Read more [tonsky.me]
– devonmather.dev - submitted by Devon Mather – Edit
We will look at a couple of common scenarios where adding a couple of lines to your tests can future-proof your application from data loss when using Model Observers.
Read more [devonmather.dev]
– stefanzweifel.dev - submitted by Stefan Zweifel – Edit
I struggled for a long time to find a good way to represent settings in my Laravel apps. spatie/laravel-data solves this for me with strong types and Eloquent casting.
Read more [stefanzweifel.dev]
– timacdonald.me – Edit
Another gem of a blog post by Tim MacDonald
Read more [timacdonald.me]
– blog.shahryartayeb.com - submitted by Shahryar – Edit
In this blog post, you will learn what event delegation is, how it can help you optimize your JavaScript code by reducing the number of event listeners, and how to implement it with a practical example.
Read more [blog.shahryartayeb.com]
– flareapp.io - submitted by Spatie – Edit
Alex and Christoph explain why error tracking is crucial for your application.
Read more [flareapp.io]
– loup-vaillant.fr – Edit
It's always nice to read good post on code reability.
Read more [loup-vaillant.fr]
by Freek Van der Herten – 2 minute read – Edit
Whenever Oh Dear detects something wrong with your site, it can send you a notification. We have multiple channels available: Slack, Telegram, webhooks, and many more. The most popular channel our users use is just simple mail.
Behind the scenes, Oh Dear uses Postmark to send emails. Postmark will inform us whenever a notification mail results in a hard bounce. A hard bounce means that the mail won't be delivered. The most common reason for this is that the mailbox doesn't exist (anymore). This can occur when somebody changes jobs, and the work email address no longer exists.
– www.conroyp.com - submitted by Paul Conroy – Edit
Value objects are a great way to add safety and consistency to PHP applications, while improving readability & testability. Let's dive into what they are, what they're not (DTOs!), and how they can help us improve our code quality.
Read more [www.conroyp.com]
– adactio.com – Edit
If you’re about to build a web app and you’re pretty sure it requires JavaScript, why not pause and consider whether you can provide a read-only version.
Read more [adactio.com]
Locality is that characteristic of source code that enables a programmer to understand that source by looking at only a small portion of it.
Read more [htmx.org]
– themsaid.com – Edit
Mohamed write a nice post featuring a lot of good tips on how to make your code readable.
Read more [themsaid.com]
– localheinz.com – Edit
Focus on writing code that solves real problems, is well-tested, and is easy to maintain.
Read more [localheinz.com]