Blog


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