/**
  * view the list of galleries (not the pics)
  */
 public function viewGalleryList()
 {
     // get all gallery entries from the gallery database which is used by the Gallery model
     $galleries = Gallery::all();
     // pass to the gallery view the database entries that was returned by the Gallery model
     return view('gallery.gallery')->with('galleries', $galleries);
 }
 public function viewGalleryList()
 {
     $galleries = Gallery::all();
     return view('gallery.gallery')->with('galleries', $galleries);
 }
Beispiel #3
0
 public function index()
 {
     $galleries = Gallery::all();
     return view('gallery.index', compact('galleries'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function getIndex()
 {
     //
     $photos = Gallery::all();
     return view('gallery.index', compact('photos'));
 }
Beispiel #5
0
 public function gallery()
 {
     $galleries = Gallery::all();
     $categories_five = DB::table('categories')->take(5)->get();
     return view('Home.gallery', compact('categories_five', 'galleries'));
 }
Beispiel #6
0
 public function getimages()
 {
     return response()->json(Gallery::all());
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $galleries = Gallery::all();
     $title = 'Administration des galeries photos';
     return view('admin.galleries.index', compact('title', 'galleries'));
 }