laravel blueprint factory fix

I took a look at blueprint last year-ish, and… held off. It was a bit too new for my comfort level, but still looked quite useful.

A couple months ago, I took a fresh look, and planned to use it for a new project.

I got things set up, generated models and tests and whatnot from my yaml file and… the tests didn’t work(!). Sure enough, someone else had the same problem. While issue was reported, there wasn’t any progress on it, so I tried to tackle it myself.

Long story short… my initial patch was wrong. My second patch… worked, but I didn’t have any tests demonstrating it (but the initial tests in place didn’t catch it anyway).

Jason McCreary, the project owner, took the time to take the core idea in my patch, and make it fit better in to the project, and… with release 2.4.0, my fix is contributed(!) Thank you Jason, for taking those extra steps. I’ve had other PRs I’ve done in the past where I didn’t follow some specific steps or process, and the fix was just ignored. Pointing out the root cause, and having someone more knowledgeable take it across the finish line, turned out great. 🙂

Similar Posts

  • Bad I9 PDF form

    Have been needing to programmatically fill out an I9 PDF, retrieved from gov site. Should be fairly straightforward, right? Well… the field names are… a mess. Field names like topmostSubform[0].Page1[0].U\.S\._Social_Security_Number__Last_4_numbers_[0]topmostSubform[0].Page1[0].expiration_date__if_applicable__mm_dd_yyyy[0] topmostSubform[0].Page2[0].Employers_Business_or_Organization_Address_Street_Number_and_Name[0] and so on make it pretty… not straightforward to create a usable key/value combination to search and replace. But… today, I noticed it got…

  • Identity and habits

    “Your present identity should not constrain your future habits”. For this quote from the audio book “Hello, Habits“. Obviously the book is about ‘habits’, but the phrase could easily have been “Your present identity should not constrain your future self”. In either reading of this, it’s been stuck in my head for while now.  How…

  • Four Thousand Weeks

    I’m starting to read “Four Thousand Weeks” from Oliver Burkeman. I initially listened to much of the audio book, then bought a copy (link above to Amazon – no affiliate link). Have not finished yet, but the core message of the book seems to be There’s certainly more to it than this, and again, I’m…

  • Importance of backups

    Well… here we are.  10 years later, and … no backups.  Or… none of the data that’s important. Recently had a drive crash in my main server where this blog is hosted.  Had it happen 2 years ago, but the data was recovered, and I put everything on automatic backups.  Using virtualmin, a great control…

Leave a Reply

Your email address will not be published. Required fields are marked *