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…
At my new job, they use a couple of different data column types in mySQL that I never actually knew existed until I started here. One of them is array and the other is json. Of course I knew these…
So I started a new job at the beginning of the month. While I’m learning a lot, at the same time, it’s familiar because it’s mainly Laravel. At the same time, I’m always learning new gotchas with Laravel as well.…
Before Laravel 5(ish), people used gulp to minimize/refresh images. It just came with it and was easy to implement. Now with Laravel Mix, you have to install a few npm packages in order to have the image compression that gulp…
I’m working on a Laravel 5.6 project that has a dynamic route based on an environment variable that I’m also setting in the config (for easy access and to avoid the dot env issue). The Laravel documentation was leading me…
I’ve recently switched to a Laravel 5.4 project. After trying to run migrations, I kept getting this darn error: [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes It made no…
Yes, yes I’ve been neglecting my own site. Yes, I’ve been busy. Yes, I’ve still been training. Yes, Roxie keeps me busy and she is still alive and very well and energetic as hell. …she’s also still SUPER adorable. In fact,…
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…