zken
zken

Reputation: 1036

PHP function on Blade directives

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

Answers (1)

Ohgodwhy
Ohgodwhy

Reputation: 50797

Then don't use the blade helper.

{{ strtoupper(trans('messages.test')) }}

Upvotes: 3

Related Questions