title: get Route name in View
body: <p>I trying to design navigation menu,
  I have 3 Items like this:</p>
  
  <ul>
  <li>Dashboard</li>
  <li>Pages
  <ul>
  <li>List</li>
  <li>Add</li>
  </ul></li>
  <li>Articles
  <ul>
  <li>List</li>
  <li>Add</li>
  </ul></li>
  </ul>
  
  <p>Now I want to bold <code>Pages</code> when user is in this section,</p>
  
  <p>and if is in <code>Add</code> page I want bold both <code>Pages</code> and <code>Add</code></p>
  
  <p>my <code>routes.php</code> is :</p>
  
  <pre><code>Route::group(array('prefix' =&gt; 'admin', 'before' =&gt; 'auth.admin'), function()
  {
      Route::any('/', 'App\Controllers\Admin\PagesController@index');
      Route::resource('articles', 'App\Controllers\Admin\ArticlesController');
      Route::resource('pages', 'App\Controllers\Admin\PagesController');
  });
  </code></pre>
  
  <p>I found thid method :</p>
  
  <pre><code>$name = \Route::currentRouteName();
  var_dump($name);
  </code></pre>
  
  <p>But this method return <code>string 'admin.pages.index' (length=17)</code></p>
  
  <p>Should I use <code>splite</code> to get controller or Laravel have a method for this ?</p>