Blaze Laravel (Error when displaying text)

2

Hello, I'm using the blade to show data, the problem when I use the ucwords and strtolower functions is not displayed. (without the functions of certain, however the text is ugly, or all uppercase, or, small because the clients do not register following a pattern, I could do the conversion in the register, but it is intriguing it). Do I need to activate some extension?

(I'm using Xampp, localhost)

{{ ucwords(strtolower($produto->produto)) }}
    
asked by anonymous 08.02.2017 / 15:25

2 answers

3

Use {!! !!} instead of {{ }}

{!! ucwords(strtolower($produto->produto)) !!}
    
08.02.2017 / 16:16
0

Solution - I used the function mb_strtolower

{{ ucwords(mb_strtolower($produto->produto)) }} 
    
08.02.2017 / 18:33