-
How to get the current URL inside @if statement (blade) in Laravel 4?
over 9 years ago
over 9 years ago
In Laravel 4.x we have many predefined function which will help us to solve basic requirement. For getting the current URL inside @if statement (blade) in Laravel 4? are very easy.Syntax and Example for getting the current URL is:
Syntax: The syntax for current url is:
Request::url();
Example:
You can use: Request::url() to obtain the current URL, here is an example:
By this way we can get the current URL inside @if statement (blade) in Laravel 4?
0 Comment(s)