A Northwoods Cabin

Thoughts on the internet and other unrelated things

Using WhereHas in Laravel Polymorphic Relations

Techniques like these are important to document because we bump into them frequently, but not frequently enough to have it memorized!

It seems like once every project I find myself googling "Laravel Polymorphic WhereHas", combing through one result after another, frustratedly repeating "How do I do this???".

While there isn't a first-party supported solution, I wanted to document what has been working for me, so I don't have to continue searching StackOverflow!

Read the entire article on the Zaengle blog →

Jan 21, 2018

Programming for your Future Self

If you are anything like me, you may find yourself hacking on a variety of different applications during a given week. Occasionally I get the luxury of working on a single app, which gives my brain the freedom to immerse itself into the details of the program. However, inevitably at some point I have to set the project aside and fire up a different one… perhaps one that was written months, or even years ago.

Several thoughts have repeatedly surfaced as I re-familiarize myself with an old project. Instead of having to collect them each time, I thought I’d write them down here, to serve as a reminder.

Read the entire article on the Zaengle blog →

Nov 10, 2017

Page 3 of 4 (36 total entries)