I have following code in my English Language file
return[
'ListPageTitle' => 'All Sports Types'
];
Below is the code in Blade
@section('title', {!! trans('SportsType.ListPageTitle') !!})
This is causing runtime error below.
syntax error, unexpected '<'
and when I checked the file under storage/framework/views/4b60af9499c50c94eb933a0ff413f7697930513e
It showing file like like below.
<?php $__env->startSection('title', <?php echo trans('SportsType.ListPageTitle'); ?>); ?>
Question
Can you please suggest the correct way to load the title from server side through language file?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire