/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('prescriptions')->delete();
     $prescription = new Prescription(['patId' => '4001', 'docId' => '2001', 'medId' => '3', 'startDate' => '2015-11-05', 'dosage' => '2']);
     $prescription->save();
     $prescription = new Prescription(['patId' => '4001', 'docId' => '2001', 'medId' => '2', 'startDate' => '2015-11-05', 'dosage' => '1']);
     $prescription->save();
     $prescription = new Prescription(['patId' => '4002', 'docId' => '2002', 'medId' => '1', 'startDate' => '2015-11-01', 'dosage' => '2']);
     $prescription->save();
     $prescription = new Prescription(['patId' => '4003', 'docId' => '2003', 'medId' => '2', 'startDate' => '2015-10-30', 'dosage' => '1']);
     $prescription->save();
     $prescription = new Prescription(['patId' => '4004', 'docId' => '2004', 'medId' => '2', 'startDate' => '2015-10-25', 'dosage' => '2']);
     $prescription->save();
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     $prescription = Prescription::find($id);
     $prescription->delete();
     return redirect('/doctor/appointment');
 }