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