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
To get current url in blade view you can use following,
Current Url
So as you can compare using following code,
@if (url()->current() == 'you url')
//stuff you want to perform
@endif