rdehnhardt/html
最新稳定版本:6.1.0
Composer 安装命令:
composer require rdehnhardt/html
包简介
README 文档
README
Package to make it easier to create forms in the bootstrap with erros validations.
Ready to Laravel 5.5 - Package Auto-Discovery
Installation
composer require rdehnhardt/html
Bootstrap 3 - 5.6.0
Bootstrap 4 - 5.6.1
Configuration
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,
How to use
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() !!}
统计信息
- 总下载量: 5.99k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-09-20