Handling email testing in Laravel with Ray
– myray.app - submitted by Spatie
Learn how to use Ray to test emails in Laravel!
Read more [myray.app]
Posts tagged with testing
– myray.app - submitted by Spatie
Learn how to use Ray to test emails in Laravel!
Read more [myray.app]
– ashallendesign.co.uk - submitted by Ash Allen
Read about how to use Pest to add architecture tests for your PHP application and enforce standards such as folder structures, naming conventions, and more.
Read more [ashallendesign.co.uk]
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 publishes a super resourceful and practical newsletter. A must for anyone in the Laravel space"
– tighten.com - submitted by Jamison Valenta
Let's talk about Husky, a tool that automatically runs any number of commands whenever you commit or push. You'll never have to worry about forgetting to format, lint, or test before uploading code to the repo — Husky does it for you every time you run git commit or git push
Read more [tighten.com]
– myray.app - submitted by Spatie
Whether you're building a shiny new feature or refactoring a bug deep in a legacy codebase, before you merge your work to production you want to get rid of all those ray() calls you littered the codebase with.
Read more [myray.app]
– ashallendesign.co.uk - submitted by Ash Allen
Learn how to automatically hash sensitive data (such as passwords) using the "hashed" model cast in Laravel. This article also covers how to test your field is being hashed correctly.
Read more [ashallendesign.co.uk]
– myray.app - submitted by Spatie
Discover how Pest offers a Ray integration out of the box!
Read more [myray.app]
My colleague Seb made a cool package to write complex expectations in a readable way.
Read more [sebastiandedeyne.com]
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.
– pestphp.com - submitted by Nuno Maduro
The PEST team just announced the release of a brand new plugin for Pest PHP: Stressless.
Read more [pestphp.com]
– www.otsch.codes - submitted by Christian Olear
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]
– www.conroyp.com - submitted by Paul Conroy
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
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]
Today, we're adding some very powerful features to both the hosted and self-hosted versions of Mailcoach: split testing (also known as A/B testing), MJML support, Livewire 3 support, suppression lists, new datables, and much more!
Read more [mailcoach.app]
Another gem of a blog post by Tim MacDonald
Read more [timacdonald.me]
– myray.app - submitted by Spatie
How to use Ray as a debugging companion in busy integration tests
Read more [myray.app]
– world.hey.com - submitted by Tony Messias
A new package by Mior called Workbench lets us set up an example Laravel app inside our packages. This Workbench app can serve as documentation of how the package integrates with a Larave app. Plus, we can use the Workbench models, controllers, routes, etc., in our package's tests and quickly run the Workbench app in the browser!
Read more [world.hey.com]
In this post, you'll learn how Ray can help you preview emails in your local environment and how it can simplify the process of developing and testing email workflows in Laravel.
Read more [myray.app]
Learn how to automatically clear Ray's screen when running a test
Read more [myray.app]
In this blog post, I'd like to show the easiest way to skip tests conditionally in tests. Using the simple technique, which can be used for other things besides skipping tests, you can make your tests much more flexible.
Focus on writing code that solves real problems, is well-tested, and is easy to maintain.
Read more [localheinz.com]