get date from carbon object code example
Example 1: php carbon get timestamp
Carbon::now()->timestamp
Example 2: php carbon from timestamp
Carbon::createFromTimestamp(1616013398)
Carbon::now()->timestamp
Carbon::createFromTimestamp(1616013398)