https://github.com/krguptaa/active
The helper class for Laravel 4/5 and 6 applications to get active class base on current route
https://github.com/krguptaa/active
active laravel-framework laravel6 routing
Last synced: 3 months ago
JSON representation
The helper class for Laravel 4/5 and 6 applications to get active class base on current route
- Host: GitHub
- URL: https://github.com/krguptaa/active
- Owner: krguptaa
- License: mit
- Created: 2019-10-11T05:43:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T11:10:14.000Z (about 1 year ago)
- Last Synced: 2025-02-01T04:51:25.160Z (4 months ago)
- Topics: active, laravel-framework, laravel6, routing
- Language: PHP
- Homepage:
- Size: 31.3 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Active for Laravel
======
Library is based on https://github.com/letrunghieu/activeThe helper class for Laravel applications (L4,L5 and L6) to get active class base on current url.
We are using this package in this repository (https://github.com/viralsolani/laravel-adminpanel) as core package.
This README file is written for the new `6.x` version of this package, which is compatible with the Laravel 6 only.
* If you are using Laravel 4, see the [`4.x` versions](https://github.com/krguptaa/active/tree/v2.x).
* If you are using Laravel 5, see the [`5.x` versions](https://github.com/krguptaa/active/tree/v3.x).## Installation
Require this package as your dependencies:
```
composer require krgupta/active
```Append this line to your `providers` array in `config/app.php`
```php
Krgupta\Active\Providers\ActiveServiceProvider::class,
```Append this line to your `aliases` array in `config/app.php`
```php
'Active' => Krgupta\Active\Facades\Active::class,
```# Contribute
You can contribute to this project, by just taking fork of it. We are open for suggestion and PRs. If you have any new suggestions or anything for that matter, contact me at [email protected]