/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Berita::find($id)->delete(); Session::flash('pesan', "<div class='alert alert-info'>\n\t\t\tData Berhasil dihapus</div>"); return Redirect::back(); }
public function detail_berita($id) { $berita = Berita::find($id); return View::make('web.detail_berita')->with('berita', $berita); }