Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{{ \Carbon\Carbon::setLocale('fr') }}
{{ $link->published_at->diffForHumans() }}
// Results
il y a 4 heures
Or another:
{{ \Carbon\Carbon::setLocale('de') }}
{{ $link->published_at->diffForHumans() }}
vor 4 Stunden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment