SQLSTATE[HY000] [1049] Unknown database 'laravel' (SQL: insert into posts (id,username,title) values (2,insert Row ,this is title )) code example
Example: SQLSTATE[HY000] [1049] Unknown database
php artisan cache:clear
php artisan migrate:install
php artisan cache:clear
php artisan migrate:install