0
'트랜잭션'컬럼이있는 DB 테이블에 오브젝트 값이 들어 있습니다. 보기 파일 DD ($ receipts-> 거래)에서오브젝트 값이있는 컬럼을 포함하는 Eloquent u 리의 값 표시
은 다음과 같습니다 - 내가 tx_date를 인쇄하려고
"{"cancelled":"0","hash":"5a3ecdf73225d","order_id":"134","tx_date":"24-December-2017 00:43:45","tx_amt":"180.0000","Result":"CAPTURED","PaymentID":"3031646430073580","PostDate":"1224","TranID":"6582408430073580","Auth":"657402","Ref":"735800425124","tx_id":"1781","tx_mode":"KNET","tx_status":""}"
-> {{$ receipts->의 트랜잭션> tx_date}}.
오류주기 : 가 아닌 객체의 속성을 얻으려고 노력
나는 다음과 같은 시도 : 다음@php
$receipts->transaction = (object) $receipts->transaction;
@endphp
을 {{$ receipts->의 트랜잭션> tx_date}}
json_decode ($ receipts-> 거래)''{의 사용하기 전에 {$ receipts->의 트랜잭션'으로 시도 > tx_date}}'. – Tpojka
'$ receipts-> transaction'은 객체가 아닙니다. 먼저 json 문자열로 디코딩해야합니다. – max