adrianmerk / laravelactive
The helper class for Laravel applications to get active class base on current route for Laravel 11
Installs: 8 838
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 89
pkg:composer/adrianmerk/laravelactive
Requires
- php: ^8.0
- laravel/framework: ^9.0|^10.0|^11.0|^12.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2025-10-10 11:39:11 UTC
README
Caution
This repository is not maintained any more. Please feel free to fork it and make it compatible to new versions of Laravel.
The helper class for Laravel applications to get active class base on current url.
Since version 7.0, the major version of this library will match the major version of Laravel.
| Laravel version | Active library version |
|---|---|
| >= 7.x | 1.0 |
Installation
Require this package as your dependencies:
composer require adrianmer/laravelactive
If you are using Laravel 5.5+, you do not need to manually register the ServiceProvider and Alias.
Append this line to your providers array in config/app.php
HieuLe\Active\ActiveServiceProvider::class,
Append this line to your aliases array in config/app.php
'Active' => HieuLe\Active\Facades\Active::class,
Usage
See: How to use Active
Changelog:
- 1.0.3 support Laravel 12