awobaz/blade-active

Laravel Blade directives for the watson/active package
4,681 3
Install
composer require awobaz/blade-active
Latest Version:1.0.10
PHP:>=5.5.0
License:MIT
Last Updated:Oct 18, 2025
Links: GitHub  ·  Packagist
Maintainer: topclaudy

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 @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.

Related Packages

webakula/laravel-paginate-route

Laravel outer extension to easily use laravel's paginator without the query stri...

13 0
exolnet/laravel-routing

The eXolnet Laravel Routing package.

10 0
watson/active

Laravel helper for recognising the current route, controller and action

3,833,730 325
juniorb2ss/laravel-route-extends-macros

Utils macros to laravel route.

13 2
tlr/laravel-utils

A collection of common classes from several projects

324 2