api to get current date and time in laravel code example Example: get current date laravel use Carbon\Carbon; $date = Carbon::now();