Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Laravel
<div class="control-group">
{{ Form::label('input01', __('validation.attributes.input01'), array('class' => 'control-label') )}}
<div class="controls">
<div class="input-prepend input-append">
<span class="add-on">@</span>
{{ Form::text('input01', 'myname', (Input::get('input01', Input::old('input01')), array('class' => 'input-xlarge')) }}
<span class="add-on">$</span>
<p class="help-block">This is an help text</p>
// Bootstrapper
echo Form::prepend_append(
Form::label('input01', __('validation.attributes.input01')),
(Input::get('input01', Input::old('input01', 'myname'))),
Form::block_help('This is an help text')
'@', '$'
// Former
Former::xlarge_text('input01', 'Text input')
->blockHelp('This is an help text')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.