Stressless: Stress Testing for PHP
– 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]
Posts tagged with php
– 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]
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.
"If you are one of the *millions* who have downloaded a Spatie package, then you understand the quality that Freek aims for. The newsletter is of the same quality of any Spatie package you're using."
– 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]
– www.otsch.codes - submitted by Christian Olear – Edit
Abstract classes cannot be instantiated directly, posing a challenge when testing functionality implemented within the abstract class itself. In this article, I share my approach to addressing this issue.
Read more [www.otsch.codes]
Stale While Revalidate (SWR) is a strategy to first return the data from the cache, then send the fetch request, and finally come up with the up-to-date data.
Read more [rias.be]
– 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]
– muhammedsari.me - submitted by Muhammed Sari – Edit
Muhammed's been working with Eloquent for over half a decade now, and it's time to share his next bag of tricks. You are guaranteed to learn something new!
Read more [muhammedsari.me]
– 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]
– youtu.be - submitted by Bert De Swaef – Edit
In this video you'll learn how to implement "load more" functionality with Livewire 3 in about 2 minutes.
Read more [youtu.be]
– imacrayon.com - submitted by Christian Taylor – Edit
How to easily progressively enhance an instant search component with Alpine AJAX so that it works with or without JavaScript available.
Read more [imacrayon.com]
– www.conroyp.com - submitted by Paul Conroy – Edit
Writing tests to validate behaviour in a multi-tenancy, multi-database app can be challenging. "Lock wait timeout" errors, or transactions cleaned up in one db and not another - it can be very frustrating! Fortunately, Laravel has a way to support db transactions across multiple databases.
Read more [www.conroyp.com]
– 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]
How to use Ray as a debugging companion in busy integration tests
Read more [myray.app]
– fly.io - submitted by Kathryn Anne Tan – Edit
Share dynamic attributes between parent and child components using Livewire Modelable, and thirftily share data between separate components with client side events!
Read more [fly.io]
Debugging Livewire components using Ray
Read more [myray.app]
– flareapp.io - submitted by Spatie – Edit
In this post we'll describe how we created a flexible yet abstract external integrations structure for Flare.
Read more [flareapp.io]
– www.eloquentarchitecture.com - submitted by John Freeman – Edit
We have an export feature that can build an Excel file over the course of many background jobs. Worked beautifully for years. Man, those were the days.
Read more [www.eloquentarchitecture.com]
– muhammedsari.me - submitted by Muhammed Sari – Edit
Muhammed's been working with Eloquent for over half a decade now, and it's time to share his bag of tricks. Buckle up, it'll be a good ride!
Read more [muhammedsari.me]