title: How to know which route is being accessed in laravel?
body: <p>I'm starting a project php with Laravel framework 5!</p>
  
  <p>I need to make a section in my project laravel for a dashboard to know which page is visited by the user.</p>
  
  <p>Example: <strong>Menu Dashboard</strong> [Home -> Profile -> Settings -> Account ]</p>
  
  <p>And i need know what is visited and show to user: ex: <strong>Dashboard -> Home</strong></p>
  
  <p>The question is, I use the Blade template of laravel to maker my fixed layout page and use for the other views pages. how to know which view is being accessed to mark in my blade layout?</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;DashBoard&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
  
          @section('sidebar')
          &lt;section id="breadcrumb"&gt;
            &lt;div class="container"&gt;
              &lt;ol class="breadcrumb"&gt;
                &lt;li&gt;&lt;a href="dashboard.html"&gt;Dashboard&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="profile.html"&gt;Profile&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="settings.html"&gt;Settings&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="account.html"&gt;Account&lt;/a&gt;&lt;/li&gt;
              &lt;/ol&gt;
            &lt;/div&gt;
         &lt;/section&gt;
          @show
  
          &lt;div class="container"&gt;
              @yield('content')
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>