Posts

Posts about WordPress, PHP, Laravel and general web development.

 

Carbon Dates with Laravel Blade

If you have something like this: {{ $task->created_at }} and it comes out like: 2019-09-11 10:26:21 then use Carbon (which is already in Laravel): {{ $task->created_at->diffForHumans() }} and you'll get: 1 week ago instead. Carbon:...

read more