Examples of Great URL Design
Here are some cool ways to structure URLs
Read more [blog.jim-nielsen.com]
Here are some cool ways to structure URLs
Read more [blog.jim-nielsen.com]
– seankegel.com - submitted by Sean Kegel
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]
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.
"Freek’s newsletter is one of the best ways to stay updated with the Laravel and PHP ecosystem. It consistently highlights useful packages, tools, and ideas from the community, especially the amazing work coming from Spatie. As a Laravel developer building SaaS and web platforms, I find it extremely helpful to discover practical tools and insights that improve my development workflow."
– jeffochoa.me - submitted by Jeff
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
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
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
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]
Another gem of a blog post by Tim MacDonald
Read more [timacdonald.me]
– blog.shahryartayeb.com - submitted by Shahryar
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
Alex and Christoph explain why error tracking is crucial for your application.
Read more [flareapp.io]
It's always nice to read good post on code reability.
Read more [loup-vaillant.fr]
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
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]
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]
– htmx.org
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]
Mohamed write a nice post featuring a lot of good tips on how to make your code readable.
Read more [themsaid.com]
Focus on writing code that solves real problems, is well-tested, and is easy to maintain.
Read more [localheinz.com]
A nice refactor from Aaron Francis
I'm always on the lookout for a good "make more things the same" refactor and I just found one!
— Aaron Francis (@aarondfrancis) March 8, 2023
Make your life easy, make more things the same. pic.twitter.com/tQfnqSZ84u
Before you write any code — ask if you could ever possibly want multiple kinds of the thing you are coding. If yes, just do it. Now, not later.
Read more [www.swyx.io]
While attending Laracon India, many people approached me to ask how we handle the maintenance of all our Spatie packages. One of the ways we keep maintenance burden low is by making our packages customizable. In this blog post, I'd like to cover some of our best tips to make a Laravel package easy…