Package to make it easier to create forms in the bootstrap with erros validations.
composer require rdehnhardt/html
Add into the file app.php in providers section
Rdehnhardt\Html\HtmlServiceProvider::class,
Add into the file app.php in alias section
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
Automatically displays error messages to the user. Simply just use the default request validation of laravel.
Any blade file
{!! Form::open(['method' => 'post', 'route' => ['route.store']]) !!}
{!! Form::openGroup('title', 'Title') !!}
{!! Form::text('title', null, ['placeholder' => 'Title']) !!}
{!! Form::closeGroup() !!}
{!! Form::openGroup('content', 'Content') !!}
{!! Form::textarea('content', null, ['placeholder' => 'Content of post']) !!}
{!! Form::closeGroup() !!}
{!! Form::openFormActions() !!}
{!! Form::submit('Save', ['class' => 'btn btn-primary form-action']) !!}
{!! Form::closeFormActions() !!}
{!! Form::close() !!}