public function pengumuman($id) { $this->data['title'] = 'Pengumuman'; $this->data['pengumumanlist'] = Models\Pengumuman::find($id); return view('front.pengumuman', $this->data); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { // $data = Pengumuman::find($id); if ($data->delete()) { return response()->json(array('success' => TRUE, 'msg' => 'Data Berhasil Dihapus')); } }