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