Skip to content

mjarestad/Helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helper

Misc helper functions for Laravel 4

##Installation Install through composer. Add require mjarestad/helper to your composer.json

"require": {
    "mjarestad/helper": "dev-master"
}

Add the ServiceProvider to the providers array in app/config/app.php

'Mjarestad\Helper\HelperServiceProvider',

Add the Facade to the aliases array in app/config/app.php

'Helper' => 'Mjarestad\Helper\Facades\Helper',

##Usage

Get active class when uri is matched.

Helper::getActiveClass('/');

<a href="/users" class="{{ Helper::getActiveClass('/users') }}">Users</a>

About

Misc helper functions for Laravel 4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages