Skip to content
Advertisement

Tag: relative-url

Laravel relative paths not working as expected on localhost

I’m just using Mac OS’s native apache2 server for my localhost. In my httpd.conf file, I set DocumentRoot “/Users/user_name/Local Sites/” …that directory houses all my sites I work on locally: So, for my particular Laravel project for site_1, I set the following in .env: APP_URL=http://localhost/site_1 …and again in config/app.php: ‘url’ => env(‘APP_URL’, ‘http://localhost/site_1’), However, when I try to use one

Advertisement