title: Laravel get current route
body: <p>I have some navigation links and I want to get the current route in laravel 5 so that I can use the <code>class</code> <code>active</code> in my navigations. Here are the sample links:</p>
  
  <pre><code>&lt;li class="active"&gt; &lt;a href="/"&gt;Home&lt;/a&gt; &lt;/li&gt;
  &lt;li&gt; &lt;a href="/contact"&gt;Contact&lt;/a&gt; &lt;/li&gt;
  &lt;li&gt; &lt;a href="/about"&gt;About&lt;/a&gt; &lt;/li&gt;
  </code></pre>
  
  <p>As you can see, in the <code>Home</code> link there is the <code>active class</code> which means that it is the current selected route. But since I am using <code>laravel blade</code> so that I would not repeat every navigation links in my blades, I can't use the active class because I only have the navigation links in my <code>template.blade.php</code>. How can I possibly get the current route and check if it is equal to the current link? Thank you in advance.</p>