LaravelPackages.net
Acme Inc.
Toggle sidebar
gjpbw/date-ago

Format date. DateAgo for Laravel.

10
0
v1.0
About gjpbw/date-ago

gjpbw/date-ago is a Laravel package for format date. dateago for laravel.. It currently has 0 GitHub stars and 10 downloads on Packagist (latest version v1.0). Install it with composer require gjpbw/date-ago. Discover more Laravel packages by gjpbw or browse all Laravel packages to compare alternatives.

Last updated

Laravel dateAgo

Installation

Require this package with composer.

composer require gjpbw/date-ago

Laravel <5.5 After updating composer, add the service provider to the providers array in config/app.php

Gjpbw\DateAgo\DateAgoServiceProvider::class,

Laravel >=5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.


Publishing

php artisan vendor:publish --provider="Gjpbw\DateAgo\DateAgoServiceProvider"

Using

dateAgo($date)

Result

demo

Star History Chart