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

Read

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

Read

October 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

Join the Newsletter

Want to be notified of new content I put out? Drop me your email. I promise I won't spam.

    We won't send you spam. Unsubscribe at any time.
    Powered By ConvertKit