Lighthouse GraphQL PHPUnit Test
I’ll admit. I’m out of practice with unit testing. We don’t really have a good setup db/seeding wise and making a crap ton of factories just took up a lot of time. Not to mention we use GraphQL which I…
I’ll admit. I’m out of practice with unit testing. We don’t really have a good setup db/seeding wise and making a crap ton of factories just took up a lot of time. Not to mention we use GraphQL which I…
Never really noticed how great foreign keys were until I started a job that just didn’t have any in the database. That also being said, foreign key events are even nicer to implement and takes a LOT of pressure off…
Hey everyone! This is yet another web dev post and this is gonna be quick and dirty.. It’s regarding Laravel and the Eloquent’s firstOrNew. firstOrNew is like firstOrCreate, but instead of creating an instance in the database, it just retrieves…