A
A
Alexander2016-03-15 12:10:37
Composer
Alexander, 2016-03-15 12:10:37

Why doesn't Composer generate an autoload.php file in the vendor folder?

I run command sudo composer install then sudo composer update and error

PHP Warning:  require(/home/alexander/Numero_Project/tatil.local/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/alexander/Numero_Project/tatil.local/bootstrap/autoload.php on line 17
PHP Fatal error:  require(): Failed opening required '/home/alexander/Numero_Project/tatil.local/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/alexander/Numero_Project/tatil.local/bootstrap/autoload.php on line 17
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error


                                                                                                             
  [RuntimeException]                                                                                         
  Error Output: PHP Warning:  require(/home/alexander/Numero_Project/tatil.local/bootstrap/../vendor/autolo  
  ad.php): failed to open stream: No such file or directory in /home/alexander/Numero_Project/tatil.local/b  
  ootstrap/autoload.php on line 17                                                                           
  PHP Fatal error:  require(): Failed opening required '/home/alexander/Numero_Project/tatil.local/bootstra  
  p/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/alexander/Numero_Pro  
  ject/tatil.local/bootstrap/autoload.php on line 17

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2016-03-15
@modestguy

Try running:
composer dump-autoload

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question