app/Http/Controllers/Product/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()
    {
        $products = Product::orderBy('id','DESC')->paginate(20);
        return view('Product.Products',compact('products'));
    }
public function index ( ) { $ products = Product :: orderBy ( 'id' , 'DESC' ) -> paginate ( 20 ) ; return view ( 'Product.Products' , compact ( 'products' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .