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

  • laravel bulk imports

    Small note, mostly for myself, as a reminder that when doing large imports of data, you may not need each block to be processed as an Eloquent model. That code above would generally be faster as Obviously there are even faster ways – preparing your data in some text format, and using your DB cli…

  • 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…

  • 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…

Leave a Reply

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