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