lloricode / active
This package is abandoned and no longer maintained.
The author suggests using the hieu-le/active package instead.
The helper class for Laravel (4/5) applications to get active class base on current route
3.5.1
2017-09-07 02:36 UTC
Requires
- php: >=7.0
- laravel/framework: ^5.5
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- orchestra/testbench: ^3.1
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2019-10-14 23:12:28 UTC
README
The helper class for Laravel applications (both L4 and L5) to get active class base on current url.
This README file is written for the new 3.x
version of this package, which is compatible with the Laravel 5 only.
- If you are using Laravel 4, see the
1.x
versions. - If you are using Laravel 5 with the legacy
2.x
version of this package, you can give a try with the3.x
version (whose API is changed totally) or continue with the2.x
version.
Installation
Require this package as your dependencies:
composer require hieu-le/active
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:
- v3.5: support Laravel 5.5.x and PHPUnit 6
- v3.4: support Laravel 5.4.x
- v3.3: support Laravel 5.3.x
- v3.2: allows first parameter of
if_*
functions to be string or array - v3.1: support both Laravel 5.2.x and 5.1.x
- v3.0: new API