app/Http/Controllers/ProductController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $product_paginate = Product::orderBy('id', 'DESC')->paginate(10);
        return view('admin/show_product', compact('product_paginate'));
    }
public function index ( ) { $ product_paginate = Product :: orderBy ( 'id' , 'DESC' ) -> paginate ( 10 ) ; return view ( 'admin/show_product' , compact ( 'product_paginate' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .