/** * show home page * @return view */ public function home() { /* $articles = Article::published() ->orderBy('published_at', 'desc') ->simplePaginate(5); return view('themes.index', compact('articles'));*/ $products = Product::simplePaginate(5); return view('themes.index', compact('products')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $products = Product::simplePaginate(30); return view('products.index', compact('products')); }