manojkiran/aktiv

Package For Handling Active Menu(s) based on routes or url or resource routes

2.0.1 2019-10-03 13:03 UTC

This package is auto-updated.

Last update: 2024-10-29 05:40:16 UTC


README

Packagist License Latest Stable Version Total Downloads Laravel5.8

Aktiv is a Laravel Helper Plugin that helpes to set the active menus

Available Methods

  • isRouteActive
  • areRoutesActive
  • isResourceActive
  • areResourcesActive
  • isActivePattern
  • areActivePatterns
  • isUrlActive
  • areUrlsActive

Installation

Aktiv requires Laravel v 5.7 to use

From the command line:

composer require manojkiran/aktiv

Laravel 5.5+ will use the auto-discovery function.

If using 5.4 (or if you are not using auto-discovery) you will need to include the service providers / facade in config/app.php:

'providers' => [
    ...,
    Manojkiran\Aktiv\AktivServiceProvider::class
];

And add a facade alias to the same file at the bottom:

'aliases' => [
    ...,
    'Aktiv' => Manojkiran\Aktiv\Facade\AktivFacade\Aktiv::class
];

How to Use (BOOTSRAP)

How to Use in CUSTOM ACTIVE CLASS

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email manojkiran10031998@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.