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:...

dd() in a View

Using dd($var); in your code is a great way to see what’s going on but you can also do this in a view using this Blade directive: @dump($var)