Error executing php artisan command

0

When executing the php artisan command within my project in laravel, it gives me this error:

PHP Warning:  require(/root/blog/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /root/blog/bootstrap/autoload.php on line 17
PHP Fatal error:  require(): Failed opening required '/root/blog/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in /root/blog/bootstrap/autoload.php on line 17
    
asked by Luz Hernandez 18.08.2017 в 19:51
source

3 answers

2

Because of the symptoms of the error it seems that you have not obtained the dependencies of composer, because the file vendor/autoload.php is generated by composer when executing composer install or composer update .

    
answered by 18.08.2017 в 20:35
0

You have to install the project dependencies. Therefore running a composer update would solve your problem.

    
answered by 24.08.2017 в 19:05
0

If you're on Linux, it's a permissions issue:

chmod 777 <directorio> -R

This would give permissions for all users in another case that is best practice:

chmod 755 <directorio> -R
    
answered by 29.08.2017 в 22:18