• 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

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

Laravel 8 Multiple Relationships for Factory

Limit login attempts in Laravel 5.7

How to unlink image from folder?

How can I pass the list to the component variable in Laravel?

Laravel database insert with combining array and string

401 Unauthorized only occurring on some pages in Laravel 8

In PHP, which is faster: preg_split or explode?

GA4 custom event from server side, can someone tell me how i can do the following code in php?

Docker & Laravel : configure: error: Package requirements (oniguruma) were not met

Invalid value in field "itemtype" in Google Search Console

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

Laravel Nova, route not found

Json_Encode not returning html even i try to encode JSON_HEX_QUOT | JSON_HEX_TAG

Laravel set default language not working

About Contact Privacy policy Terms and conditions