• 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

merge all files in directory to one text file

laravel automatically deletes server.php on php artisan serve

Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttpPsr7Request

How to set a domain name with php artisan serve

Laravel/docker-compose/redis - Class 'Redis' not found

Pass a select with mysqli_fetch_row to a table

Exception thrown during the rendering of a template("Parameter "id" for route "url" must match "[^/]++" ("" given) to generate a corresponding URL.")

Sync Records With Default Values in Pivot Tables, Call to undefined method syncWithPivotDefaults()

merging two arrays with specified index

How can I remove the "Advanced" panel of all blocks in WordPress block editor?

Utf8 encoding issue with Laravel

Add customer email and phone in "Order" column to admin orders list on Woocommerce

Reading input in php from terminal

What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

About Contact Privacy policy Terms and conditions