I\'m trying to utilize Laravel\'s localization feature, but I need to be able to put emphasis or bolden a portion of a phrase. Inserting a HTML tag into the language file ca
Using @lang
directive:
@lang('nav.find')
Source: Retrieving Translation Strings
Using Laravel 5.6 and above, can use the __
helper along with the blade syntax:
{!! __('pagination.next') !!}
Had to do those for the pagination blade templates.
Use {!! !!}
instead of {{ }}
to prevent escaping:
{!! trans('nav.find') !!}