I want to get the id from my messages.php file e.g:
"apple": "Apple is..", "pear": "Pear is..."
and display it in my view dynamically, getting the page's id from my json file.
For example I want to do something like this, but it won't work:
{{ __('messages.'{{$fruit_data->id}}')}}
Keep in mind that in json and messages.php file the id's are the same exactly.