@php $title = []; $data = []; foreach( \App\Translation::where('device','audit')->get() as $translation ) { $title[ $translation->key ] = $translation; } @endphp
test view
{{ $title['document.subject']['hu'] ? $title['document.subject']['hu'] : 'document.subject' }}
getTitle
getTitle('document.subject', $title, $data)
*
$title var dump
{{ $title['document.subject']['hu'] }}
app('translator')
{{ app('translator')->getLocale() }}
dictionary is object
{{ is_object($dictionary) ? 'Object' : 'not an Object' }}
dictionary is array
{{ is_array($dictionary) ? 'Array' : 'not an Array' }}
contract
{{$contract->name}}
pages
{{$pages}}
master
$master
slaves
$slaves
events
$events
timestamp
$timestamp
dictionary
dictionary
ledger_url
$ledger_url
privKey
$privKey