create date from format carbon laravel code example
Example 1: laravel carbon today date format
$today = Carbon::now()->format('Y-m-d'); //yyyy-mm-dd etc
Example 2: php carbon get timestamp
Carbon::now()->timestamp
$today = Carbon::now()->format('Y-m-d'); //yyyy-mm-dd etc
Carbon::now()->timestamp