jybtx / active
The helper class for Laravel applications to get active class base on current route.forked from hieu-le/active
v0.1
2024-01-27 03:55 UTC
Requires
- php: ^8.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-10-27 05:41:42 UTC
README
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.
Installation
Require this package as your dependencies:
composer require jybtx/active
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
Jybtx\Active\ActiveServiceProvider::class,
Append this line to your aliases
array in config/app.php
'Active' => Jybtx\Active\Facades\Active::class,
Usage
See: How to use Active