SQLSTATE[HY000] [1049] Unknown database '' (SQL: select ) code example
Example 1: SQLSTATE[HY000] [1049] Unknown database 'laravel' (SQL: select * from `posts`)"
php artisan cache:clear
Example 2: SQLSTATE[HY000] [1049] Unknown database
php artisan cache:clear
php artisan migrate:install