Coder Social home page Coder Social logo

ivanderbu2 / active Goto Github PK

View Code? Open in Web Editor NEW

This project forked from letrunghieu/active

0.0 1.0 0.0 96 KB

The helper class for Laravel applications to get active class base on current route

Home Page: https://www.hieule.info/tag/laravel-active/

License: MIT License

PHP 100.00%

active's Introduction

Active for Laravel

Build Status Latest Stable Version Code Climate Test Coverage Total Downloads License

The helper class for Laravel applications to get active class base on current url.

This README file is written for the new 4.x version of this package, which is compatible with the Laravel 6 only.

Installation

Require this package as your dependencies:

composer require hieu-le/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

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:

  • v4.0: support Laravel 6 and PHPUnit 8
  • 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.