/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $medication = Medication::findOrFail($id); $medication->delete(); return redirect()->route('medications.index')->with('success-message', 'Medication deleted.'); }