Is it possible, with laravel 4, to generate relatives url to use in forms and links ?
For example I have a form where I'd like to use a relative url to /user/login and laravel build the form with the full url http: //url.com/user/login
I think what you need is helper functions.
Generate a fully qualified URL to a given path using HTTPS.
echo secure_url('foo/bar', $parameters = array());
Generate a fully qualified URL to the given path.
echo url('foo/bar', $parameters = array(), $secure = null);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.