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