wie für den Zugriff auf geschützte array Werte ?

Hallo ich habe dieses array und ich bin nicht sicher, wie Sie wird, ich hol den Namen , die Marke, Bild -, token-Werte von es?

Gloudemans\Shoppingcart\CartCollection Object
(
  [items:protected] => Array
     (
          [1264477c2182cc04a63fde1186741fa7] =>       Gloudemans\Shoppingcart\CartRowCollection Object
            (
                [associatedModel:protected] => 
                [associatedModelNamespace:protected] => 
                [items:protected] => Array
                    (
                        [rowid] => 1264477c2182cc04a63fde1186741fa7
                        [id] => 1
                        [name] => washington apples
                        [qty] => 1
                        [price] => 90
                        [options] => Gloudemans\Shoppingcart\CartRowOptionsCollection Object
                            (
                                [items:protected] => Array
                                    (
                                        [brand] => awesome apple
                                        [image] => C:\xampp\htdocs\srsgrocery\storage/app/products/1/apple-06.jpg
                                        [token] => WiQgUjqgHEB3HZ2ImJ6iPQWHnm246twFD3Uyk6AH
                                    )

                            )

                        [subtotal] => 90
                    )

            )

    )

)

Ich bin mit dem php framework namens laravel.

Bitte helfen Sie.

Schreibe einen Kommentar