PHP Classes

Failed opening required '/var/www/public/../vendor/autoload.php'

Recommend this page to a friend!

      Laravel Docker Starter  >  All threads  >  Failed opening required...  >  (Un) Subscribe thread alerts  
Subject:Failed opening required...
Summary:Composer doesn't seem to be installed after docker-compose up
Messages:2
Author:Carlos Brasileiro
Date:2020-10-05 09:05:46
 

  1. Failed opening required...   Reply   Report abuse  
Picture of Carlos Brasileiro Carlos Brasileiro - 2020-10-05 09:05:46
I ran docker-compose up and the 3 containers (laravel-web,-php and -database) were created and started.

Howerver, when I try to access the app (address http://localhost) via browser, the following appears:

Warning: require(/var/www/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/public/index.php on line 24
Fatal error: require(): Failed opening required '/var/www/public/../vendor/autoload.php'

In fact, I can't find that file nor the composer.phar on the laravel-web container.

  2. Re: Failed opening required...   Reply   Report abuse  
Picture of Carlos Brasileiro Carlos Brasileiro - 2020-10-05 09:45:41 - In reply to message 1 from Carlos Brasileiro
I haven't read the README.MD file. I'm sorry about this.

Trying again.