cherrypulp/laravel-bootstrap
Composer 安装命令:
composer require cherrypulp/laravel-bootstrap
包简介
A laravel bootstrap helpers and components
关键字:
README 文档
README
Bootstrap components helpers for your Laravel/Stem project.
Installation
Install via composer
composer require cherrypulp/laravel-bootstrap
Register Service Provider
Note! This and next step are optional if you use laravel>=5.5 with package auto discovery feature.
Add service provider to config/app.php in providers section
Cherrypulp\LaravelBootstrap\ServiceProvider::class,
Register Facade
Register package facade in config/app.php in aliases section
Cherrypulp\LaravelBootstrap\Facades\LaravelBootstrap::class,
Publish Configuration File
php artisan vendor:publish --provider="Cherrypulp\LaravelBootstrap\ServiceProvider" --tag="config"
Usage
This package have a list of common bootstrap components that you can use in different way.
Like a blade component :
@component('bs:alert')
Message
@endcomponent
Like an aliased blade component (if config('laravel-bootstrap.register_components') is enabled)
@alert
Message
@endalert
Like a function helper (if config('laravel-bootstrap.helper) is true)
bs()->alert('Message');
Security
If you discover any security related issues, please email instead of using the issue tracker.
Credits
This package is bootstrapped with the help of cherrypulp/laravel-package-generator.
统计信息
- 总下载量: 41
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-15

