/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(Photo $images) { return view('welcome')->with('images', $images->paginate(20)->sortByDesc('created_at')); }