I am using Laravel 4. I would like to access the current URL inside an @if condition in a view using the Laravel\'s Blade templating engine but I don\'t know ho
@if
The simplest way is to use: Request::url();
Request::url();
But here is a complex way:
URL::to('/').'/'.Route::getCurrentRoute()->getPath();