It does not work when your machine is running on vagrant (or another virtual environnement) and you run php artisan config:cache out of vagrant. Do you need to run this command in vagrant. The problem is about path routes (path are not the same in vagrant and out of vagrant).