Prasad Chathuranga
Prasad Chathuranga

Reputation: 11

How to access value in Json Object Laravel Blade

I just want to access the "Elevator" value in this json object. How to do this in Laravel blade templates ?

thanks !

{"delivery_floor":null,"pickup_floor":null,"Elevator":"Yes","Elevator2":"Yes","disassembled":"Yes","reassembled":"Yes","shipment_title":""}

Upvotes: 0

Views: 743

Answers (1)

A.A Noman
A.A Noman

Reputation: 5270

You have to use following code

@php $jsonDecodeValue = json_decode($your_variable,true); @endphp
{{ $jsonDecodeValue['Elevator']}}

Upvotes: 1

Related Questions