Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/topclaudy/blade-active
Blade directives for the Laravel 'Active' package
https://github.com/topclaudy/blade-active
Last synced: about 2 months ago
JSON representation
Blade directives for the Laravel 'Active' package
- Host: GitHub
- URL: https://github.com/topclaudy/blade-active
- Owner: topclaudy
- License: mit
- Created: 2018-05-28T03:41:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-03T17:28:01.000Z (5 months ago)
- Last Synced: 2024-08-03T18:44:48.349Z (5 months ago)
- Language: PHP
- Size: 258 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Blade Active
=============**Blade Active** provides Blade directives for the [Active](https://github.com/dwightwatson/active) package.
## Installation
The recommended way to install **Blade Active** is through [Composer](http://getcomposer.org/)
```bash
$ composer require awobaz/blade-active
```## Usage
First, read the documentation of the [Active](https://github.com/dwightwatson/active) package.
**Blade Active** provides 2 Blade directives to wrap the functionality of the `active()` and `is_active()` helpers:
```php
@active()
@isactive()
```### Using @active()
```php
All posts
```### Using @isactive()
```php
@isactive('posts/*')
You're looking at a blog post!
@endisactive
```
## ContributingPlease read [CONTRIBUTING.md](https://github.com/topclaudy/blade-active/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/topclaudy/blade-active/tags).
## Authors
* [Claudin J. Daniel](https://github.com/topclaudy) - *Blade directives*
* [Dwight Watson](https://github.com/dwightwatson) - *Initial work*## Sponsored by
* [Awobaz](https://awobaz.com) - Web/Mobile agency based in Montreal, Canada
## License
**Blade Active** is licensed under the [MIT License](http://opensource.org/licenses/MIT).