/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     \App\Models\Appointment::create(['clinic_id' => 1, 'service_id' => 2, 'user_id' => 1, 'appointment_date' => time()]);
     \App\Models\Appointment::create(['clinic_id' => 1, 'service_id' => 1, 'user_id' => 2, 'appointment_date' => time()]);
     \App\Models\Appointment::create(['clinic_id' => 1, 'service_id' => 3, 'user_id' => 3, 'appointment_date' => time()]);
     \App\Models\Appointment::create(['clinic_id' => 1, 'service_id' => 1, 'user_id' => 1, 'appointment_date' => time()]);
     \App\Models\Appointment::create(['clinic_id' => 1, 'service_id' => 2, 'user_id' => 2, 'appointment_date' => time()]);
     \App\Models\Appointment::create(['clinic_id' => 1, 'service_id' => 3, 'user_id' => 3, 'appointment_date' => time()]);
     \App\Models\Appointment::create(['clinic_id' => 1, 'service_id' => 4, 'user_id' => 4, 'appointment_date' => time()]);
     \App\Models\Appointment::create(['clinic_id' => 1, 'service_id' => 5, 'user_id' => 5, 'appointment_date' => time()]);
     \App\Models\Appointment::create(['clinic_id' => 1, 'service_id' => 6, 'user_id' => 6, 'appointment_date' => time()]);
 }
예제 #2
0
 public static function addAppointment($customerID)
 {
     $info = Session::get('appointmentInfo');
     Appointment::create(array('customer_id' => $customerID, 'appointment_type' => $info['package_id'], 'appointment_datetime' => $info['datetime']));
 }