Reputation: 1036
I'm using @lang
from Blade directives to handle translations.
I'd like to use PHP
function to act on this directive "return statement" in views, for example :
strtoupper(@lang('messages.test'))
Is that possible with Blade ?
Upvotes: 0
Views: 194
Reputation: 50797
Then don't use the blade helper.
{{ strtoupper(trans('messages.test')) }}
Upvotes: 3