Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 /**
  * 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));
     }
 }