I wrote an article about using custom classes for managing cache keys in Laravel. This makes it easy to create and forget cache items without having to use magic strings throughout your application.
In his review of Refactoring Databases 18 years ago, @mfowler wrote: "After my refactoring book appeared I was delighted to find sophisticated tools appear with automated many refactoring tasks. I hope the same thing happens with databases, and we begin to see vendors offer tools that make continual migrations of schema and data easier for everyone."
Would be great to get a "state of the art" in 2024 on that. What tools have you used? How did you find using them?
@freekmurze I’ve grown more and more fond of using value objects to wrap collections, and then have my own ->add method on that which only accepts a single type of value.
First time trying to install a #WordPress site locally for dev work, using #Laravel Valet. Didn’t go as smooth as expected. The fault, mine of course. my global composer.json was using valet 3.2.1, when 4.6.1 is the most recent version. composer global update and Zingo’s man, WordPress runs locally!
For those that are going to suggest #DDEV, tried that, and it worked perfectly on one machine and not at all on another. After several frustrating hours I gave up on DDEV.