In this post, I'll go over how to use MySQL CASE within Laravel v5.2 queries, give some use cases and also give some examples for my copy-paste homies. After working with this for a little while now, it has been a game changer in situations where I need to normalize data in the application I currently work with. Hopefully it does some game changing for you as well.
I have to be honest with you: semantic highlighting for PHP has changed my coding life. I am very much spoiled by it now and you know what, I don’t mind at all. There I said it. I am definitely a code snob now and I am perfectly ok with it. I am also much […]