language value print in Laravel blade

<?php

// resources/lang/en/messages.php

return [
    'welcome' => 'Welcome to our application!',
];
echo __('messages.welcome');
{{ __('messages.welcome') }}

@lang('messages.welcome')

Laravel language file contains array



<?php

// resources/lang/en/messages.php

return [
  'month'=>array("जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्टूबर","नवम्बर","दिसम्बर"),
];

{{ __('message.month.1') }}

Leave a Reply