• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Show date difference as "20" instead of "20 years ago"

phplaravelphp-carbon


PHP Snippet 1:

{{Carbon::parse($etudiant->date_naissance)->diffInYears()}}

Related Snippets

Log a user out of a website when they put their computer to sleep

Laravel 5 controller sending JSON integer as string

Laravel 5.5 change unauthenticated login redirect url

Facebook API, get page post link (PHP)

301 Redirect to remove query string on homepage only

Wordpress add responsive srcset header image to theme

Laravel excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

Laravel Unknown Column 'updated_at'

Split a string array into pieces

Get keys from associative array [duplicate]

WooCommerce Additional Information - if empty, hide

Converting array to string and then back in PHP

Laravel - How to properly generate unique slugs from article titles?

XAMPP keeps showing Dashboard/Welcome Page instead of the Configuration Page

About Contact Privacy policy Terms and conditions