awobaz/blade-active

Laravel Blade directives for the watson/active package

Maintainers

👁 topclaudy

Package info

github.com/topclaudy/blade-active

pkg:composer/awobaz/blade-active

Statistics

Installs: 4 235

Dependents: 0

Suggesters: 12

Stars: 3

Open Issues: 3

1.0.10 2025-10-18 22:29 UTC

Requires

Requires (Dev)

Suggests

Provides

None

Conflicts

None

Replaces

None

MIT 1a37c2e26f80f6bc2c057c0486651a72f90b6151

  • Claudin J. Daniel <cdaniel.woop@awobaz.com>

routinglaravelactive linkcurrent url


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

Sponsored by

  • Awobaz - Web/Mobile agency based in Montreal, Canada

License

Blade Active is licensed under the MIT License.