SQLSTATE[HY000] [1049] Unknown database 'laravel' (SQL: select * from `users` where `id` = 1 limit 1) 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