-
-
Save jonphipps/f8ece813a48cd6b1575b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_HOME=/Users/joeblough | |
VAGRANT_HOME=/home/vagrant | |
... | |
DB_CONNECTION=mysql | |
DB_HOST=localhost | |
DB_PORT=3306 | |
DB_PORT_VM=33060 | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //config/database.php | |
... | |
'connections' => [ | |
'mysql' => [ | |
'driver' => 'mysql', | |
'host' => env('DB_HOST', 'localhost'), | |
'port' => ($_SERVER['HOME'] === env('LOCAL_HOME')) | |
? env('DB_PORT_VM', '33060') : env('DB_PORT', '3306') , | |
'charset' => 'utf8mb4', | |
'collation' => 'utf8mb4_general_ci', | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment