boyjarv
1 month ago
141
5
Laravel

get data out in view

Posted 1 month ago by boyjarv

When I try the following:

{{ $thevenue ?? '' }}

I get this:

[{"id":1152522,"user_id":19,"email":"[email protected]","venuename":"New Sussex Hotel","slug":"new-sussex-hotel","venuetype":"Public Houses","address":"182 South Street","address2":null,"town":"Lancing","county":"West Sussex","postcode":"BN158AU","postalsearch":"BN15","telephone":"01903 753424","latitude":"50.8220655","longitude":"-0.3245099","website":null,"photo":"public\/venues\/photos\/c1ZHdLFo438pitQNb710eSx1y1Q9ueHxokexECvj.jpeg","is_live":1,"created_at":"2020-03-15 18:37:54","updated_at":"2020-09-15 12:58:49"}]

I just want to show the Venuename but when I do:

{{ $thevenue->venuename }}

I get:

Property [venuename] does not exist on this collection instance.

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