You have forge in one section and homestead in the other match the two and see if it works.
this is the fallback, it has nothing to do with it. After the "," is for using as a fallback, when I have no informations in the .env :-)
What's your default database driver set to? It's in param default
in config/database.php
.
And can you connect to db with mysql console client?
hey albert
had the same problem fixed it with adding this line in the .env file
'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
so your .env file code should loook like this
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '8889'),
'database' => env('DB_DATABASE', 'linda'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', 'root'),
'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => fasle,
'engine' => null,
],
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community