Tuesday, May 23, 2017

Laravel Collective Form and Custom Bootstrap component

I have this submit button in my view,using Laravel Collective package:

{!! Form::submit('Delete', ['class' => 'btn btn-danger']) !!}

and as you can see it add a Bootstrap class and create a button.

Now my purpose is to create a custom button like this:

<button type="button" class="btn btn-default btn-lg">
    <span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star
</button>

that has a span to keep the glyphicon. How could I do that?



via Stefano Maglione

Advertisement