• 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

Maatwebsite Excel 3.1 : how do I skip duplicate data when imported?

Clients authentication and user authentication with laravel

How to display MySQL table using php and edit it in a web browser

Send POST data via raw JSON with Postman

Detect a fetch request in PHP

Is there an equivalent of DynamoDB on Azure as a PHP session Handler

How to show a popup modal in codeIgniter?

phpunit - testing is painfully slow

add uri parameter to Route name in laravel

How to programmatically find public properties of a class from inside one of it's methods

Whats the point of running Laravel with the command 'php artisan serve'?

Stop caching for PHP 5.5.3 in MAMP

Laravel 8 Multiple Relationships for Factory

How to set time with DateTime modify?

Detect if PHP session exists

About Contact Privacy policy Terms and conditions