carbon now
Carbon::createFromFormat('Y-m-d H:i:s', $request->date)->format('d-m-Y')$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:00Carbon::now();
Also in PHP:
- create a laravel 7 project
- $headder in php
- datetime format laravel
- convert caps to sentese case php
- cache laravel
- codeigniter 4 radio button isset
- curent date and time php
- access config variable in codeigniter controller
- Modularizing laravel 8.0
- case upper php
- current time in php
- check if a key is in an array
- Hie date format php
- create laravel project with version
- datephp
- Str in laravel
- Laravel store multiple files
- clear laravel cache and clear vue
- days to date php
- count rows mysql limit php
- autoload file in laravel
- display_errors php.ini
- cache:clear php artisan
- AWS HTTP error: Error creating resource: [message] fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed