Hello have some issues with my Laravel. Migrations work fine but when I try to insert ou access data with Eloquent I have a "SQLSTATE[HY000] [2002] Connection refused" error.
my .env:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=myddb
DB_USERNAME=root
DB_PASSWORD=password
my database.php
'driver' => 'mysql',
'host' =>'127.0.0.1',
'port' => '3306',
'database' =>'myddb',
'username' => 'root',
'password' => 'password',
Btw I use Docker.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire