Level 20
In your .env file check this and uncomment it and configure it according to your setup ..
DB_CONNECTION=mysql //according to your database
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=databaseName
DB_USERNAME=root
DB_PASSWORD=
after that you can run php artisan migrate without any error.
1 like