ckdot/laravel-foundation-forms
最新稳定版本:0.1.8
Composer 安装命令:
composer require ckdot/laravel-foundation-forms
包简介
Reduce the boilerplate code required to get forms in Laravel to have Foundation styling
README 文档
README
Create Foundation forms in Laravel in no time. You can find the original article here: http://blog.stidges.com/post/easy-bootstrap-forms-in-laravel
Install
composer require ckdot/laravel-foundation-forms:~0.1
Configure
Make sure you comment out the existing HtmlServiceProvider (Illuminate\Html\HtmlServiceProvider):
<?php // File (Laravel 5): config/app.php return array( // ... 'providers' => array( // ... //Illuminate\Html\HtmlServiceProvider::class, Ckdot\FoundationForms\FoundationFormsServiceProvider::class, // ... ), // ... );
No change is necessary for the Form Facade.
Example
{{ Form::open([ 'route' => 'posts.store' ]) }}
{{ Form::openGroup('title', 'Title') }}
{{ Form::text('title') }}
{{ Form::closeGroup() }}
{{ Form::openGroup('status', 'Status') }}
{{ Form::select('status', $statusOptions) }}
{{ Form::closeGroup() }}
{{ Form::close() }}
统计信息
- 总下载量: 959
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-19