watchwood / bladestrap
此包的最新版本(1.1)没有可用的许可证信息。
Bootstrap 3 辅助工具,用于 Laravel 的 Blade 视图引擎。
1.1
2017-06-29 03:07 UTC
Requires
- illuminate/support: ^5.1
- illuminate/view: ^5.1
Requires (Dev)
- phpunit/phpunit: ^5
This package is not auto-updated.
Last update: 2024-09-24 16:40:26 UTC
README
Bootstrap 3 辅助工具,用于 Laravel 的 Blade 视图引擎。
安装
运行 composer require watchwood/BladeStrap
以将包包含到您的 Laravel 应用中。
将 watchwood\BladeStrap\ServiceProvider::class
添加到您的应用配置服务提供者中。
使用方法
@panel($title, $type)
打开一个面板。
- $title (可选): 面板的标题字段
- $type (可选): primary, warning 等。默认为 default
@endpanel
关闭一个面板。
@alert($title, $type)
打开一个警告框。
- $title (可选): 面板的标题字段
- $type (可选): primary, warning 等。默认为 info
@endalert
关闭一个警告框。
贡献
Bootstrap 有很多东西,我目前正根据个人需要将它们添加到这个包中。如果您想看到这个包中添加任何内容,请随时在 Github 上联系我或提交带有额外功能的 Pull Request。