Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • URLs in laravel 4.x

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 85
    Comment on it

    There are n number of functions of URLs in laravel 4.x which is used to perform action that are

    action:

    action is a function which is used to generate a URL for a given controller action.

    Example:

    $url = action('HomeController@getIndex', $params);
    

    route:

    route is a function which is used to generate a URL for a given named route.

    Example:

    $url = route('routeName', $params);
    

    link_to:

    link_to is a function which is used to generate a HTML link to the given URL.

    Example:

    echo link_to('foo/bar', $title, $attributes = array(), $secure = null);
    

    secure_url:

    secure_url is a function which is used to generate a fully qualified URL to a given path using HTTPS.

    Example:

    echo secure_url('foo/bar', $parameters = array());
    

 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: