carbon diffforhumans
$comment->created_at->diffForHumans();$now = Carbon::now();
echo $now; // 2020-03-22 17:45:58
echo "\n";
$today = Carbon::today();
echo $today; // 2020-03-22 00:00:00
echo "\n";
$tomorrow = Carbon::tomorrow('Europe/London');
echo $tomorrow; // 2020-03-23 00:00:00
echo "\n";
$yesterday = Carbon::yesterday();
echo $yesterday; // 2020-03-21 00:00:00\Carbon\Carbon::parse('2019-08-03')->diffForHumans();
Also in PHP:
- add more data to variable php
- Allowed memory size of 1610612736 bytes exhausted composer require laravel windows
- base64 decode using php
- email in ctf
- after validate credential header is not redirect to another page in php in live server
- date() function
- date time formatting php
- clear config cache laravel 5
- catch custom exception php
- ->sale_price
- <?php if ( is_home()
- composer set php version
- date php W_z
- List all folder in pHP
- Codeigniter count query results
- convert lowercase to uppercase php
- expression is not allowed as parameter
- Install or enable PHP's gd extension
- Am having error running npm run dev in my laravel app
- distinct array repetidos
- Format Month as a number php
- Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter ta
- $date- format php
- deprcation problem phpmyadmin ubuntu