made with Laravel

Eloquent Human Timestamps

Human Timestamp Diffs for Eloquent Models

View Repo Read More


Human Timestamp Diffs for Eloquent Models

"This package provides a trait you can add to an Eloquent model that will automatically create human-readable timestamp diffs using Carbon (f.ex. "edited 3 minutes ago").

It's an opinionated package that provides the human timestamps without the added effort of accessor creation. To get the human-readable attribute, you just need to retrieve the timestamp normally and append _for_humans to the name, e.g. created_at_for_humans, updated_at_for_humans."


Chris Di Carlo

Social Media Links

Laravel Legacy UI Legacy UI Presets with Auth Scaffolding for Laravel 8
icon-eye-dark Created with Sketch. 339
Laravel Terminator Refactoring Tool
icon-eye-dark Created with Sketch. 1.395
Sentry for Laravel Laravel Error Monitoring
❤️ Sponsored by Friends
We’re hosting on Digital Ocean! 💙 Try it today and get a free $100 credit.
Laravel IDE Helper Generate Laravel IDE Helpers
icon-eye-dark Created with Sketch. 6.165
Corcel Get data from a WordPress Database
icon-eye-dark Created with Sketch. 1.951