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