lundi 14 décembre 2020

How to get nested payload to Laravel layout view

I have this payload and want to get assign individual param to layout view:

  {
            "id": 1,
            "name": "some name",
            "option": {
                "name": "A",
                "description": "test test"
            },
            "desc": "test description",
            "media": [
                {
                    "name": "A",
                    "description": "Test test"
                }
            ],
            "default": {
                "level": {
                    "L": 10,
                    "B": 2,
                    "C": 10
                },
                "other": [
                    {
                        "name": "A",
                        "description": "Test test"
                    },
                    {
                        "name": "B",
                        "description": "Test test"
                    },
                    {
                        "name": "C",
                        "description": "Test test"
                    }
                ]
            }
        }
       
         @foreach($tests as $data)
                   
             @endforeach


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3qWlxLC
via IFTTT

Aucun commentaire:

Enregistrer un commentaire