Here is the message I have when I access my site:
Fatal error: Uncaught Error: Call to undefined method ComposerAutoloaderInitd7a72f88a86cf25d5563498a7179620e::getLoader()
in /home/vagrant/code/vendor/autoload.php:7
Stack trace: #0 /home/vagrant/code/public/index.php(34): require() #1 {main}
thrown in /home/vagrant/code/vendor/autoload.php on line 7
I am using
I have found many SO questions about it, but nothing worked so far. I tried:
dd
'd into it)composer dump-autoload
rm -rf vendor
, composer install
If you have any idea on what's going on... Thanks!
EDIT
I destroyed the VM. Before anything else I accessed the site and had the message saying that the session table was not found. Good. Then I ran a php artisan migrate:fresh --seed
and here is the message I got:
Fatal error: Uncaught Error: Call to undefined method Swift::registerAutoload() in /home/vagrant/code/vendor/swiftmailer/swiftmailer/lib/swift_required.php:13 Stack trace: #0 /home/vagrant/code/vendor/composer/autoload_real.php(71): require() #1 /home/vagrant/code/vendor/composer/autoload_real.php(61): composerRequiree92ff6905f8cf8863d20126d313557d0() #2 /home/vagrant/code/vendor/autoload.php(7): ComposerAutoloaderInite92ff6905f8cf8863d20126d313557d0::getLoader() #3 /home/vagrant/code/public/index.php(34): require('/home/vagrant/c...') #4 {main} thrown in /home/vagrant/code/vendor/swiftmailer/swiftmailer/lib/swift_required.php on line 13
It does not reappear after a refresh, but the first message popped again.
After days on this issue I decided to switch from Homestead to Docker, though I've always worked with the first, and it worked well before I reinstalled my computer.
Now everything works well. This is not THE solution I was expecting, but I can now start to work again.