<li>{{ HTML::link(URL::route('home'), trans('pages.home.name'), Route::currentRouteName() === 'home' ? array('class' => 'active') : null) }}</li>
<li>{{ HTML::link(URL::route('news'), trans('pages.news.name'), in_array(Route::currentRouteName(), array('news', 'news-details')) ? array('class' => 'active') : null) }}</li>
Created
July 15, 2014 15:36
-
-
Save tillsanders/f3deba4ebffab43473f1 to your computer and use it in GitHub Desktop.
Generate menus using Laravel routes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment