• 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

Laravel: Why is my variable not being set while it's in the construct function of the controller?

how to sort by a custom appended relation to model

Laravel 5 controller sending JSON integer as string

laravel sanctum Route [login] not defined

RabbitMQ PRECONDITION_FAILED - unknown delivery tag

Laravel Nova, route not found

How to install php yaml on CentOs?

MySQL upgrade causing unexpected results on simple WHERE clauses

How to retrieve Active Directory group policy maximum password age using LDAP

Uploading video to Youtube using Youtube Data API V3 and Google API Client PHP -- getting 401 (unauthorized) message

Apply filter array/return terms

Laravel Collections. Is there some kind of assertStructure method?

how to remove %20 in the url in php

SQL to convert multiple rows into a single row of variable length

Laravel Command Schedule Not Working Properly

About Contact Privacy policy Terms and conditions