Illuminate\Database\QueryException SQLSTATE[HY000] [1049] Unknown database 'cms2' (SQL: select * from `posts`) code example
Example: SQLSTATE[HY000] [1049] Unknown database
php artisan cache:clear
php artisan migrate:install
php artisan cache:clear
php artisan migrate:install