Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Throw this in your helper.php
- function set_active($path, $active = 'active') {
- return call_user_func_array('Request::is', (array)$path) ? $active : '';
- }
- <li class="{{ set_active(['about*']) }}"><a href="{{ url('about') }}">About Us</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement