July 18, 2021

Running Only Previously Failed PHPUnit Tests

I love TDD, or test-driven development. It does take getting used to the seemingly slower pace of development but to me that's an illusion. Sure, I can't just spike out an app in 3 hours but my...

Read

June 30, 2021

My ZSH Snippets

After typing the same commands at a shell prompt or manually configuring some JSON config file for the umpteenth time, I sometimes find myself falling down the rabbit-hole and wanting to make my life...

Read

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