Blade Active provides Blade directives for the Active package.
The recommended way to install Blade Active is through Composer
$ composer require awobaz/blade-active
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()
<a href="{{ route('posts.index') }}" class="@active('posts.index')">All posts</a>
@isactive('posts/*')
You're looking at a blog post!
@endisactive
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Claudin J. Daniel - Blade directives
- Dwight Watson - Initial work
Blade Active is licensed under the MIT License.