Skip to content

Awobaz/blade-active

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blade Active

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 @active()

@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

License

Blade Active is licensed under the MIT License.

About

Blade directives for the Laravel 'Active' package

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%