Break lines in blade translation files
use {!! !!}
instead of {{ }}
and <br/>
tag in you message
<p>{!! trans('mission-vision-page.mission-description') !!}</p>
Add custom blade directive, in App\Providers\AppServiceProvider.php
add:
\Blade::directive('lang2br', function ($expression) {
return "<?php echo nl2br(app('translator')->getFromJson({$expression})); ?>";
});
Then you can use like lang
directive:
@lang2br('something');