Printing out values of a collection in laravel

Viewed 3414

In my controller I have

$all = \App\Product::where('campaign_id', $product->campaign_id)->get();

When I DD out in the template

{{ dd($all)}}

I get a collection object

Collection {#340 ▼
  #items: array:1 [▼
    0 => Product {#341 ▼
      #connection: "mysql"
      #table: null
      #primaryKey: "id"
      #keyType: "int"
      +incrementing: true
      #with: []
      #withCount: []
      #perPage: 15
      +exists: true
      +wasRecentlyCreated: false
      #attributes: array:10 [▶]
      #original: array:10 [▶]
      #casts: []
      #dates: []
      #dateFormat: null
      #appends: []
      #events: []
      #observables: []
      #relations: []
      #touches: []
      +timestamps: true
      #hidden: []
      #visible: []
      #fillable: []
      #guarded: array:1 [▶]
    }
  ]
}

How do I see the basic array returned?

1 Answers
Related