Skip to content

Instantly share code, notes, and snippets.

@ljayz
Created September 13, 2018 01:16
Show Gist options
  • Save ljayz/8df5b420001c7d9d1d83fc5afe092919 to your computer and use it in GitHub Desktop.
Save ljayz/8df5b420001c7d9d1d83fc5afe092919 to your computer and use it in GitHub Desktop.
XAMPP: Fix laravel undefined index in database.php
<VirtualHost laravel.localhost.com:80>
ServerAdmin user@localhost.com
DocumentRoot "/path/to/laravel/application/public/folder"
ServerName laravel.localhost.com
ErrorLog "logs/laravel.localhost.com.log"
CustomLog "logs/laravel.localhost.comm-access.log" common
SetEnv DATABASE_URL http://user:pass@localhost/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment