/**
  * Show the form for editing the specified prescription.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $prescription = Prescription::where('appointment_id', $id)->get()->first();
     $medicines = Medicine::all()->lists('name', 'id');
     $old_medicines = explode(',', $prescription->medicines);
     return View::make('prescriptions.edit', compact('old_medicines', 'prescription', 'medicines'));
 }
 /**
  * Display a listing of medicines
  *
  * @return Response
  */
 public function index()
 {
     $medicines = Medicine::all();
     return View::make('medicines.index', compact('medicines'));
 }