title: Check request URL in laravel
body: <p>In dashboard.blade.php, I manage js library links.</p>
  
  <p>So, as I don't want to include all libs in all pages, I do it like that:</p>
  
  <pre><code>@if (Request::is("mail/create"))
          {!! Html::script('js/plugins/ui/nicescroll.min.js') !!}
          {!! Html::script('js/sidebar_detached_sticky_custom.js') !!}
  @endif
  </code></pre>
  
  <p>for each page or group of pages.</p>
  
  <p>Thing is when I edit an item, I my URL have this format:</p>
  
  <pre><code>http://laravel.dev:8000/mail/1/edit
  </code></pre>
  
  <p>And as 1 is the shop Id and vary, my method doesn't work anymore....</p>
  
  <p>Any way to fix my issue or to do it better???</p>
  
  <p>Tx!</p>