refactorian / laravel-docker

Laravel Docker Template - Laravel v11.x, PHP v8.3.x, MySQL v8.1.x, phpMyAdmin v5.x, Mailpit v1.x
286 stars 117 forks source link

Vendor not found #67

Closed ui-code closed 6 months ago

ui-code commented 6 months ago

After following the steps in readme, setup was successful in docker. But when I go to http://localhost/, I get this error:

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 13

Fatal error: Uncaught Error: Failed opening required '/var/www/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/public/index.php:13 Stack trace: #0 {main} thrown in /var/www/public/index.php on line 13

I looked for vendor folder, it's not present. It's ignored in gitignore file.

refactorian commented 6 months ago

It works on my machine 🤷‍♂️