/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $pengumumans = Pengumuman::find($id); $pengumumans->delete(); return response()->json(["pesan" => "dell"]); }
public function deletePengumuman($id) { $pengumuman = Pengumuman::find($id); $pengumuman->delete(); }