Base URL

Posted 6 months ago by jerschmidt14

Hi, so I want to host my app in iis. I have many apps running and each has its own virtual directory. I have Laravel working on it. Well almost. To get to my app you go http://server/appname. I noticed that my routes don’t work route(‘/test’). And I put all links in as {{ url(‘/route’) }} in the blades. Is there anyway to override the route and URL functions so that they would return /app name/route without me making a mess and hard Coding? I tried putting in the app.php but doesn’t seem to work. I did notice people overriding some methods but being as I am a noob, I need to know specific files to put code in. I am using Laravel 5.7. Thanks in advance!

Please sign in or create an account to participate in this conversation.