laravel datetime now to number code example Example: get current date laravel use Carbon\Carbon; $date = Carbon::now();