public function album() { $this->data['title'] = 'Album Foto'; $this->data['album'] = Models\Galeri::OrderBy('id_album', 'desc')->paginate(12); return view('bappeda.galeri', $this->data); }
public function foto($id) { $this->data['title'] = 'Album lembaga'; $album = Models\Galeri::find($id); $this->data['foto'] = $album->foto; return view('front.foto', $this->data); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { // $galeri = Galeri::find($id); if ($galeri->delete()) { return response()->json(array('success' => TRUE)); } }