Skip to content

Instantly share code, notes, and snippets.

@harrygr
Last active August 29, 2015 14:09
Show Gist options
  • Save harrygr/2f1ef227199892fadb07 to your computer and use it in GitHub Desktop.
Save harrygr/2f1ef227199892fadb07 to your computer and use it in GitHub Desktop.
Laravel Blade: Bootstrap edit form
{{ Form::model(':model', ['route' => ['model.update', $model->id], 'class' => '', 'method' => 'PUT']) }}
<div class="row">
<!-- Form Fields -->
<div class="col-md-12">
{{ HTML::decode(HTML::linkRoute('model.index', '<i class="fa fa-chevron-left"></i> Back', null, ['class' => 'btn btn-default'])) }}
{{ Form::submit('Update', ['class'=>'btn btn-success']) }}
</div>
</div>
{{ Form::close() }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment