A nice refactoring I've learned recently is to utilize types in conditionals. For years I’ve been doing if (!empty($posts)), but Rector, a tool to...
Laravel 10 is making the headlines these days. However, many apps are stuck in older versions, or at least still use the syntax and methods of older...
As developers, we lose a lot of benefits by testing after the fact. · One of the first roles that I've been working on since I went full-time remote was...
Various 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...
You just have to try Rector. Heck, let the tests break, just run it. · I have to say it from the start, the only thing that comes close to safely...
Removing unreachable and redundant code will benefit you massively over time. There's a tool to do this automatically for you. · It's important to take a...