Pagination

pagination




1 Comments


  • aladham
    aladham 2018-10-27 23:09:05

    السلام عليكم
    لو عاوز اعرض التفاصيل لل pagination مثال في الكود ازاي؟

    {
        "data": [
            {
                "id": 11,
                "category_id": 2,
                "name": "Product 1",
                "description": "Description Description Description Description",
                "item_features": "Item Features Item Features Item Features Item Features",
                "video": "https://youtu.be/z3YPhYwcbBM",
                "price": 22,
                "quantity": 1,
                "is_resent_product": 0,
                "is_most_popular": 1,
                "is_best_sellers": 0,
                "is_on_sale": 0,
                "condition": "New",
                "images": [
                    {
                        "id": 20,
                        "link": "http://localhost/gamers/public/assets/uploads/products/3746349201540666003.png"
                    },
                    {
                        "id": 21,
                        "link": "http://localhost/gamers/public/assets/uploads/products/1840237821540666003.png"
                    }
                ]
            }
        ],
        "links": {
            "first": "http://localhost/gamers/public/api/products?page=1",
            "last": "http://localhost/gamers/public/api/products?page=2",
            "prev": null,
            "next": "http://localhost/gamers/public/api/products?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 2,
            "path": "http://localhost/gamers/public/api/products",
            "per_page": 1,
            "to": 1,
            "total": 2
        }
    }

Add Comment


You Must have account Login Or Register

5dmat-web team