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 = Product::orderBy('id','desc')->Paginate(3);
        return view('admin.product.index',compact('product'));
    }
public function index ( ) { $ product = Product :: orderBy ( 'id' , 'desc' ) -> Paginate ( 3 ) ; return view ( 'admin.product.index' , compact ( 'product' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//