Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to get current web page url in Laravel 4.x

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 105
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: