Search code examples
laraveltranslationlaravel-bladelaravel-form

recursive echo inside laravel collective form blade


is it correct that I cannot do things like:

   {{ Form::label('search',{!!__('messages.rep_findUsr')!!} )}}

do I need to store it before in a var and then pass it as argument?

or there is a faster way? thanks


Solution

  • You could simply set the fourth parameter to false to disable html escaped:

    {{ Form::label('search',__('messages.rep_findUsr'), [], false) }}
    

    Form::label declaration

    public function label($name, $value = null, $options = [], $escape_html = true);