New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

awobaz/blade-active

Laravel Blade directives for the watson/active package
5,322 3
Install
composer require awobaz/blade-active
Latest Version:1.0.10
PHP:>=5.5.0
Laravel:10 – 13
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

eusonlito/laravel-simple-route

A package to create basic routes based in locales

112 0
laravel/folio

Page based routing for Laravel.

825,419 608
inmanturbo/turbohx

Send HTMX hx-post, put, patch and delete requests to your laravel/folio routes.

6,060 2
delormejonathan/laravel-js-routing

Laravel 4/5 package to access Routing from Javascript

1,018 7
babanesma/laravel5-routing

Laravel5 routing package

14 0

Version History

Version Released PHP License
1.0.10 >=5.5.0 MIT
1.0.9 >=5.5.0 MIT
1.0.8 >=5.5.0 MIT
1.0.7 >=5.5.0 MIT
1.0.6 >=5.5.0 MIT