carbon date format laravel 8 code example
Example 1: laravel carbon today date format
$today = Carbon::now()->format('Y-m-d'); //yyyy-mm-dd etc
Example 2: laravel carbon isoformat
Carbon::now()->toISOString()
$today = Carbon::now()->format('Y-m-d'); //yyyy-mm-dd etc
Carbon::now()->toISOString()