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
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