title: How to Get the Current URL Inside @if Statement (Blade) in Laravel 4?
body: <p>I am using Laravel 4. I would like to access the current URL inside an <code>@if</code> condition in a view using the Laravel's Blade templating engine but I don't know how to do it.</p>
  
  <p>I know that it can be done using something like <code>&lt;?php echo URL::current(); ?&gt;</code> but It's not possible inside an <code>@if</code> blade statement.</p>
  
  <p>Any suggestions?</p>