Call to a member function diffForHumans() on string in
// Larvel - call diffForHumans() function on string
$date = $info->created_at;
{{ \Carbon\Carbon::parse($date)->diffForHumans() }}
Also in PHP:
- create new project laravel
- boucle for php with data
- disable errors in php
- check if value contain letter php
- filer validation in laravel
- ajax call php
- date format in day name of month and year in php
- dateofrmat php
- catch exception php of spetie
- composite unique between two columns laravel migration
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 5287496 bytes) on laravel
- Modularizing laravel 8.0
- $this->validate($request,[ 'name' => 'required|unique:categories', 'images' => 'required|mimes:jpeg,bmp,png,jpg'
- don't show php errors
- '%r%i timeformat php
- check if substring php
- associative array rev in php
- angular post phph
- check if array contains key php
- cache clear in laravel
- Warning: func_get_arg() expects exactly 1 parameter, 0 given in
- adding days to time value in php
- check if in array key php
- acheck key exist in array php