(Mac User) Any Command of Laravel got error showing unknown database but when I run on the web browser (localhost:8080/yoursite) its work perfectly fine
but I want to migrate the database so that is why I want to resolve this problem
yoursite but you must think about how works fine on the web browser that means database connection is fine but any command of laravel don't work like migration config: clear or any commands
Still error
But when i change db conmetion - 127.0.0.1 to 127.0.0.1:8080
On terminal, its showing different error that is mysql has gone away
But on web browser, db connection is refused