feniixx
4 years ago
53
12
Laravel

Loop through a collection

Posted 4 years ago by feniixx

I've got this collection of collections, how could i access to each sub collection of the main collection in the view?

Collection {#425 ▼
  #items: array:2 [▼
    0 => Collection {#426 ▼
      #items: array:3 [▼
        0 => Opciones {#467 ▶}
        1 => Opciones {#468 ▶}
        2 => Opciones {#469 ▶}
      ]
    }
    1 => Collection {#338 ▼
      #items: array:2 [▼
        0 => Opciones {#470 ▶}
        1 => Opciones {#471 ▶}
      ]
    }
  ]
}

Please sign in or create an account to participate in this conversation.