Simplifying work with custom stubs in LaravelTesting is almost always difficult when developing applications that interact with external services, APIs, or complex features. One way to make testing easier is to use stub classes. Here's how I usually work with them. Quick intro on benefits Stubs...May 17, 2025·4 min read·1.5K
Development Driven TestingAs developers, we lose a lot of benefits by testing after the fact.Feb 1, 2023·5 min read·584
Allowing users to send emails with their own SMTP settings in Laravel 9Various guides exist on how to do this in Laravel, but all the ones I found (this and this) worked only up to Laravel 8. The reason is that in v9 the Swift Mailer was no longer supported in favor of Symfony Mailer. The Laravel docs show how to write ...Jan 22, 2023·3 min read·2.0K
Safely upgrade from PHP 7.4 to 8.1 using RectorYou just have to try Rector. Heck, let the tests break, just run it.Sep 24, 2022·4 min read·6.7K
Refactoring #8: What is dead may never runRemoving unreachable and redundant code will benefit you massively over time. There's a tool to do this automatically for you.Sep 4, 2022·4 min read·408
Refactoring #7: Upping the coding style game in PHP using RectorRector has a catalog of refactorings ready for us to consume and expand upon.Aug 31, 2022·5 min read·1.2K
Refactoring #6: Improve Code Quality in Laravel using RectorThe promise is simple: you install and run the package, you get instant automated upgrades and refactorings.Aug 11, 2022·4 min read·1.6K