Blog

Every now and then, I decide to jot down some thoughts I've had that may or may not be interesting for others to read. You can find my musings down below.

Laravel
Blade
'Tis the season of Wrapped, and I apparently managed to place myself among the top 0.005% listeners of The Emptiness Machine by Linkin Park by listening to it a total of 192 times. It's just that good (and so is the rest of the album!) Speaking of wr...
Read more
Laravel
Eloquent
Collections
I recently submitted a pull request to the Laravel framework to add a new Eloquent attribute called CollectedBy. In short, it allows you to use an attribute to configure your Eloquent model to use a specific Collection class, rather than the default...
Read more
Laravel
Database
One thing I've been experimenting with lately, with positive results, is using models as flags. When you need to flag one of your models somehow, you might add a boolean to your table to indicate a certain status. For example, let's say you add a fea...
Read more
Livewire
Project structure
A while ago I refactored a rather large Livewire application at work to use a pattern inspired by Caleb’s fantastic Data Table series (if you haven’t watched those series yet you should just stop reading this right now and go watch them right now, th...
Read more
Website
Alright, so I finally got this thing set up! It's been years since I last had a website, and it's a bit overdue, but anyways—here it is! There's not very much to it yet, but the website is open source and available to view on GitHub for those who are...
Read more