1
votes

While typing https://deepdivecms.test/ in Chrome it returns the following error

Warning: require(/home/vagrant/Code/deepdivecms/public/../vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/Code/deepdivecms/public/index.php on line 24 Call Stack

Time Memory Function Location

1 0.0011 392400 {main}( ) .../index.php:0

Fatal error: require(): Failed opening required '/home/vagrant/Code/deepdivecms/public/../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/vagrant/Code/deepdivecms/public/index.php on line 24

in my homestead.yaml file, I have put

sites: - map: deepdivecms.test to: /home/vagrant/Code/deepdivecms/public

Also in the host file i have updated

192.168.10.10 deepdivecms.test

1
Did you do composer install in your project?Chris Forrence

1 Answers

8
votes

Run composer install. If that doesn't work, try composer dump-autoload to generate your autoload classmap.