<?php

use Illuminate\Database\Seeder;

class EvaluateSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        foreach (\App\Reservation::cursor() as $reservation) {
            factory(\App\Evaluate::class)->create([
                'name' => $reservation->name,
                'reservation_id' => $reservation->id,
                'service_id' => $reservation->service_id,
                'appointment_date' => $reservation->appointment_date,
                'appointment_time' => $reservation->appointment_time,
            ]);
        }
    }
}
