laravel difference between current time and created time

Solutions on MaxInterview for laravel difference between current time and created time by the best coders in the world

showing results for - "laravel difference between current time and created time"
Sofie
10 Oct 2018
1#1 -> 10 minutes after
2$lifeSpan = $now->diffForHumans($token->created_at);
3#2 -> "00:10:30 Minutes"
4$lifeSpan = $now->diff($token->updated_at)->format('%H:%I:%S')." Minutes";