Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    API: how to get categories with children count and children ID's

    General Discussion
    2
    3
    410
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      trane294 last edited by

      Is there any way?

      1 Reply Last reply Reply Quote 0
      • R
        Ramos444 last edited by

        Here is how I did it in my project
        I first get the list of all categories like this:
        ecee9999-f0da-4469-a2c4-b2699a1515da-image.png
        Then I go through a foreach like this
        @foreach($categories as $categorie)
        Inside the loop i do this
        47b5bb7e-aee4-44b6-bd0f-a9640a61430b-image.png
        @endforeach

        1 Reply Last reply Reply Quote 1
        • T
          trane294 last edited by

          Thank you!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post