Exemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     // $allUserPhotos = PhotoMapImageUploader::orderBy('photoMapId')->get();
     $allLocations = Marker_location::all();
     $allPhotos = PhotoMapImageUploader::orderBy('photoMapId')->get();
     return view('photoMap.index', compact('allLocations', 'allPhotos'));
 }
Exemplo n.º 2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $allLocations = Marker_location::all();
     $allEvents = Events::orderBy('created_at', 'DESC')->get();
     $allPost = Posts::orderBy('created_at', 'DESC')->get();
     //getting all the post from post database table
     $allUserPhotos = PhotoMapImageUploader::orderBy('photoMapId')->get();
     return view('admin.index', compact('allLocations', 'allEvents', 'allPost', 'allUserPhotos'));
 }