SQLSTATE[HY000] [1049] Unknown database
snippet in sql

SQLSTATE[HY000] [1049] Unknown database 'laravel' (SQL: select * from `posts`)"

user1296

php artisan cache:clear

SQLSTATE[HY000] [1049] Unknown database

user3333

php artisan cache:clear
php artisan migrate:install