how to use date time in laravel code example Example: time() in laravel use Carbon\Carbon; $date = Carbon::now();