alex-oliveira / ao-html
Laravel 5.1 + Bootstrap 3的HTML资源
dev-master
2015-11-25 18:58 UTC
Requires
- php: >=5.5.9
- laravel/framework: 5.1.*
This package is auto-updated.
Last update: 2024-09-25 22:42:24 UTC
README
Laravel 5.1 + Bootstrap 3的HTML资源
1) 安装
$ composer require alex-oliveira/ao-html:dev-master
2) config/app.php
'providers' => [
/*
* Vendors Service Providers...
*/
AoHtml\HtmlServiceProvider::class,
],
'aliases' => [
/*
* Vendors Facades
*/
'Html' => AoHtml\HtmlFacade::class,
],
3) 模板
在模板中包含包CSS。
{!! html()->css() !!}
在模板中包含包JS。
{!! html()->js() !!}
4) 元素
html()->tabs();
html()->tab();
html()->panels();
html()->panel();
html()->form();
html()->input();
html()->select();
html()->textarea();
html()->button();