Skip to content

Instantly share code, notes, and snippets.

@harrygr
Last active August 29, 2015 14:09
Show Gist options
  • Save harrygr/00c1ba58378fdd40deee to your computer and use it in GitHub Desktop.
Save harrygr/00c1ba58378fdd40deee to your computer and use it in GitHub Desktop.
Laravel Blade: Bootstrap open form
{{ Form::open(['route' => 'model.route', 'class' => '', 'method' => 'POST']) }}
<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('Submit', ['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