Have you explored the url helper functions, sounds like a path just needs to be resolved.
Feb 6, 2017
11
Level 7
url() only returns the base url
Hello,
in my .env file my APP_URL = http://mydomain.com/project_folder. Then in the index method of my controller, I wanted to cache the page by using view()->render().
My problem is in the view that I am using I have this lines
but the rendered result becomes
<link href="http://mydomain.com/assets/css/style.css" rel="stylesheet">
<link href="http://mydomain.com/assets/css/responsive.css" rel="stylesheet">
Why did it on get the base url or the domain name and not the correct value of APP_URL which is http://mydomain.com/project_folder?
How do I fix it so it will return the APP_URL value?
Thanks in advance.
Please or to participate in this conversation.