awobaz/blade-active
Composer 安装命令:
composer require awobaz/blade-active
包简介
Laravel Blade directives for the watson/active package
README 文档
README
Blade Active provides Blade directives for the Active package.
Installation
The recommended way to install Blade Active is through Composer
$ composer require awobaz/blade-active
Usage
First, read the documentation of the Active package.
Blade Active provides 2 Blade directives to wrap the functionality of the active() and is_active() helpers:
@active()
@isactive()
Using @active()
<a href="{{ route('posts.index') }}" class="@active('posts.index')">All posts</a>
Using @isactive()
@isactive('posts/*') You're looking at a blog post! @endisactive
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Claudin J. Daniel - Blade directives
- Dwight Watson - Initial work
Sponsored by
- Awobaz - Web/Mobile agency based in Montreal, Canada
License
Blade Active is licensed under the MIT License.
统计信息
- 总下载量: 4.24k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 12
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-28