/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id, $dokter, $hari) { ODokter::find($dokter)->praktek($id, $hari)->delete(); return 'deleted'; }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($faskes, $dokter, $hari) { ODokter::find($dokter)->praktek($faskes, $dokter, $hari)->delete(); return redirect('faskes/' . $faskes . '/dokter/' . $dokter . '/praktek')->with('message', 'Data Berhasil Dihapus'); }