• 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

I'm trying to write a clean url for my website using the $_SERVER['REQUEST_URI'] in php

Get lat/lon from google maps url ftid (hex)

How to properly start Laravel 8 with Bootstrap & authentication

Sliders in Laravel

How to validate Envato Purchase Code in PHP

PHPUnit gives error: Target [IlluminateContractsViewFactory] is not instantiable

Phpunit partial mock + proxy Entity

PHP to search within txt file and echo the whole line

jQuery Ajax Post with data

How to read laravel_session cookies saved in cookie memory of browser in client side?

Laravel Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) on a sub query with "ROW_NUMBER() OVER PARTITION"

hidden INPUT value not available in $_POST

Xdebug in Laravel is not working with VSCode

Do I need to install `fxp/composer-asset-plugin` if I'm not doing front-end development

Move a child array to parent array and change parent/child name

About Contact Privacy policy Terms and conditions