/** * Display a listing of the resource. * * @return Response */ public function index() { $images = Foto::all(); return view('slideshow.index')->with('images', $images); }
public function index() { $fotos = Foto::all(); return view('Foto.index')->with('fotos', $fotos); }
/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { $fotos = Foto::all(); return view('fotos.create', compact('fotos')); }
public function getHome() { $slides = Foto::all(); return view('static.home')->with('slides', $slides); }