Skip to content
Advertisement

Laravel 8 database connection not working

Trying to connect laravel 8 app in production to mysql database. Have tried to follow documentation but it isn’t working.

.env file as follows

JavaScript

config/database.php as follows

JavaScript

when i run php artisan migrate --force, i get this error:

JavaScript

Can anybody please explain what I’m going wrong?

It seems to be ignoring both those files.

Advertisement

Answer

write in terminal :

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement