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