awobaz / blade-active
Laravel Blade directives for the watson/active package
Installs: 2 599
Dependents: 0
Suggesters: 11
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 3
Requires
- php: >=5.5.0
- watson/active: ^7.0
Requires (Dev)
- laravel/laravel: ~5.4|^6.0|^7.0|~8.0|~9.0|~10.0|~11.0
- phpunit/phpunit: ~5.4|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0
Suggests
- awobaz/compoships: Multi-columns relationships for Laravel 5's Eloquent
- awobaz/eloquent-auto-append: Automatically append accessors to model serialization
- awobaz/eloquent-mutators: Reusable mutators (getters/setters) for Laravel 5's Eloquent
- awobaz/syntactic: Syntactic sugar for named and indexed parameters call.
This package is auto-updated.
Last update: 2024-12-03 18:10:44 UTC
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.