/** * Show the form for editing the specified seance. * * @param int $id * @return Response */ public function edit($id) { $seance = Seance::find($id); $liste_patients = Patient::all(); $patients = array(); foreach ($liste_patients as $pat) { $patients[$pat->id] = strtoupper($pat->nom) . " " . ucwords($pat->prenom); } return View::make('backend.seances.edit', compact('seance', 'patients')); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $this->seance->find($id)->delete(); return Redirect::route('seances.index'); }