November 16, 2020
Testing When Using Laravel's SoftDeletes
The other night I was trying to debug a rather irritating issue in an app where some tests would inexplicably pass or fail. There didn't seem to be any pattern - e.g. I could run the whole suite 10...
ReadOctober 29, 2020
Building an Autocomplete/Typeahead Component with AlpineJS and Livewire
The concept was simple: build an autocomplete (or if you prefer, typeahead) text input for a project I was working on but using only AlpineJS and Livewire. Fast forward a couple of weeks, multiple...
ReadOctober 18, 2020
Elegant Eloquent Human Timestamps
Recently I found myself needing to display humanized diffs for various timestamps, e.g. Edited 3 minutes ago. Having to add an accessor to my Laravel models for each property was getting a wee bit...
Read