To get the current page url in laravel 4.x is as follow
$webpageURL=URL::to('/');
By using the above code it will automatically take the web page url.
Example:
Lets take a example of findnerd.
**http://findnerd.com/account#url=/postblog/9465/**
By using above code we will get "http://findnerd.com" as a result.
0 Comment(s)