I can\'t use the same database.php settings when browsing the local website in a browser (example.app:8000) and when using php artisan migrate.
If my database.php se
You have to execute the migration command from inside the VM. First, you log into the VM:
ssh vagrant@127.0.0.1 -p 2222
After that, you just cd into your project's folder and run the migration
cd Code/blog
php artisan migrate
The reason why this happens is because localhost:3306 from the perspective of your machine is one thing, from inside the VM is another.