lundi 4 janvier 2016

Creating a Form Label Element

How to create form label element in laravel.

I want to convert below html

<label class="control-label">Status <span class="required">*</span></label>

I used

{!! Form::label('status', 'Status <span class="required">*</span>', array('class' => 'control-label')) !!}

But the output is

Status <span class="required">*</span>

The question is how to render HTML in it, Or is there a way?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire