awobaz/blade-active

Laravel Blade directives for the watson/active package
4,845 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

watson/active

Laravel helper for recognising the current route, controller and action

3,875,506 325
delormejonathan/laravel-js-routing

Laravel 4/5 package to access Routing from Javascript

1,018 7
fedeisas/laravel-js-routes

Laravel 4 routes from Javascript

139,991 62
lord/laroute

Access Laravels URL/Route helper functions, from JavaScript.

2,024,813 785
pecee/simple-router

Simple, fast PHP router that is easy to get integrated and in almost any project...

241,550 670