Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use strtolower in *.blade.php file with @lang extension in Laravel?

I have tried this, but get error:

{{ strtolower( @lang('basics.days') ) }}

How can I transform to lowercase my localized string in a .blade.php file in Laravel 5.4?

like image 379
netdjw Avatar asked Sep 02 '25 02:09

netdjw


1 Answers

You can use trans() helper:

{{ strtolower(trans('basics.days')) }}
like image 69
Alexey Mezenin Avatar answered Sep 06 '25 16:09

Alexey Mezenin