Nosean
1 year ago

Blade output

Posted 1 year ago by Nosean

Hello

Have a problem

I would like to output to the following object the article description in Blade.

$article = DB::table('articles')->where('articleNumber', $price->articleNumber)->get();
dd($article);

Collection {#754 ▼
  #items: array:1 [▼
    0 => {#752 ▼
      +"article_id": 1
      +"articleNumber": "PROPAN1KG"
      +"articleDescription": "1 kg Propangas"
      +"articleUnit": "1"
      +"category_id": 1
      +"articleSalesPrice": "1.00"
      +"created_at": null
      +"updated_at": null
    }
  ]
}

I try with {{ $article->articleDescription }}, but without success....

thx Guys

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