/** * 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')); } }
public function pengumuman($id) { $this->data['title'] = 'Pengumuman'; $this->data['pengumumanlist'] = Models\Pengumuman::find($id); return view('front.pengumuman', $this->data); }
public function pengumuman($slug) { $pengumuman_detail = Models\Pengumuman::where('slug_pengumuman', $slug)->first(); $this->data['pengumumanlist'] = $pengumuman_detail; $this->data['title'] = $pengumuman_detail->judul_pengumuman; $this->data['desc'] = $pengumuman_detail->judul_pengumuman; $this->data['key'] = $pengumuman_detail->judul_pengumuman; return view('bappeda.detail_informasi', $this->data); }