Nested States in Laravel 8 Database Factories
– stefanzweifel.io - submitted by Stefan Zweifel
A quick intro on how to use states for "nested" Database Factories. The examples covers the Models created by laravel/cashier-paddle package.
Read more [stefanzweifel.io]
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.
"Always fresh, useful tips and articles. Carefully selected community content. My favorite newsletter, which I look forward to every time."
Don't trust default timeouts
Modern applications don’t crash; they hang. One of the main reasons for it is the assumption that the network is reliable. It isn’t.
Read more [robertovitillo.com]
Automating the Laravel 8 schema dump using GitHub Actions
– fidum.uk
Dan Manson explains how you can run that shiny new schema:dump command on GitHub actions. Pretty cool
Read more [fidum.uk]
Making Time Make Sense in JavaScript
Maggie Johnson-Pint discusses where the JavaScript Date goes bad, better ways to model the date and time space in our code, and how the Temporal proposal making its way through TC39 helps us write correct code for every person in every time zone.
Unconventional Laravel: Custom Pipeline Classes
– ryangjchandler.co.uk - submitted by Ryan Chandler
Laravel makes use of the internal Pipeline class and it's more common in userland too, but have you ever considered tidying up these pipeline processes with custom pipeline classes?
Read more [ryangjchandler.co.uk]
Gracefully Switching Queue Drivers in a Laravel app
In this post Mohamed Said shared the possible ways to switch between drivers.
Read more [divinglaravel.com]
Working with data in a larger-than-average Laravel app
In this example chapter taken from the Laravel Beyond CRUD course, Brent explains a good strategy to handle data
Read more [laravel-beyond-crud.com]
Faking Laravel's current date in Cypress end-to-end tests
– johnbraun.blog - submitted by John Braun
When writing an end-to-end test, it is tricky to force the application to use a certain (fake) date. In this post, John Braun shares his approach using a custom middleware to be able to write Cypress tests while your application state uses a specific (fake) date.
Read more [johnbraun.blog]
Certificate lifetimes limited to 1y since September 1st, 2020
Earlier this year, Apple announced that it limit the lifetime of trusted certificates to 398 days. Shortly after, both Firefox and Chrome followed in their footsteps.
Read more [ohdear.app]
Supporting and testing using multiple Laravel and PHP versions
In this video you'll learn how add support for multiple PHP and Laravel versions, and how to run the tests against all combinations of Laravel and PHP.
Read more [spatie.be]
Serverless functions with Vercel
Geoffrey Dhuyvetters demonstrates how you can create serverless functions and run them on Vercel.
Read more [madewithlove.com]
Refactoring PHP: 4 actionable tips
Christop Rumpel shares some good tips on how to refactor code.
Read more [christoph-rumpel.com]
Invert, always, invert
Instead of focusing of how to get a positive outcome, you might consider thinking about reasons why you'll get a negative outcome. This could possibly lead to new perspectives that you might had not considered otherwise.
Read more [www.anup.io]
Building and growing hobby projects
In this stream I share how Mattias Geniar and I started and are growing Oh Dear. Halfway the stream, Simon Bennet joins me to talk about Snapshooter.
Job Batching in Laravel: How It Works
Mohamed Said wrote a good post on how the shiny new batching functionality works in Laravel 8
Read more [divinglaravel.com]
PEST v0.3 is now released
– nunomaduro.com - submitted by Nuno Maduro
PEST v0.3 features a new expectation API, a brand new PHPStorm plugin, and more.
Read more [nunomaduro.com]
How to schedule commands to run every few seconds in a Laravel app original
Using our spatie/laravel-short-schedule package you can schedule commands at sub-minute intervals.
Compound Colour Utilities with TailwindCSS
– liamhammett.com - submitted by Liam Hammett
An approach you can use to combine multiple tightly coupled utilities together into a new compound utility class.
Read more [liamhammett.com]
Dialects in Code
Ross Tuck doesn't blog often, but when he does, it's worth your time!
Read more [www.rosstuck.com]