Question : laravel current timestamp
Answered by : outrageous-okapi-xxl0zbjkavdh
use Carbon\Carbon;
$current_date_time = Carbon::now()->toDateTimeString(); // Produces something like "2019-03-11 12:25:00"
Source : https://stackoverflow.com/questions/32719972/how-to-get-current-timestamp-from-carbon-in-laravel-5 | Last Update : Wed, 10 Mar 21
Question : laravel timestamp
Answered by : borma425
use Carbon\Carbon;
$current_timestamp = Carbon::now()->timestamp; // Produces something like 1552296328
Source : https://stackoverflow.com/questions/32719972/how-to-get-current-timestamp-from-carbon-in-laravel-5 | Last Update : Sat, 04 Dec 21
Question : Get only time from timestamp in laravel
Answered by : muhammad-ishaq
$time = date('H:i:s', strtotime($data['created_at']));
Source : | Last Update : Sat, 23 Apr 22