There was a problem running the finished Laravel project. Installed composer and curl. From the project folder I try to run:

php composer.phar update 

I get an error:

 PHP fatal error: require(): Failed opening required '/home/user/myproject/bootstrap/../vendor/autoload.php' (include_path = '.:/usr/share/php:/usr/share/pear') in /home/user/myproject/bootstrap/autoload.php on line 17 

In line 17, the following is written:

 require __DIR__.'/../vendor/autoload.php'; 

Those. cannot find the autoload.php file, the vendor folder does not exist in the project.

What am I doing wrong? I was also told that laravel itself is not necessary.

  • In the Laravel distribution, the vendor folder is spelled out in .gitignore. If it is locally developed, and then unloaded into its repo, then vendor will not get there. Have to host its archive archive ftp and unpack. Do you happen to have such a situation? - pavelchervov
  • @pavelchervov is not like that. You just had to do php composer.phar install - Kirill

1 answer 1

Solved: from the root folder of the project you need to run in the terminal:

 php composer.phar install php composer.phar update php artisan serve