E
E
evil0o2016-03-30 20:29:55
Composer
evil0o, 2016-03-30 20:29:55

Why doesn't composer of the new version work with laravel 5.1?

Found project link (version laravel 5.1)
Trying to execute composer install an error occurs, while other projects on laravel 5.2 work

> php artisan clear-compiled
PHP Warning:  require(/home/ro/public_html/Laravel-5-Bootstrap-3-Starter-Site/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/ro/public_html/Laravel-5-Bootstrap-3-Starter-Site/bootstrap/autoload.php on line 17
PHP Fatal error:  require(): Failed opening required '/home/ro/public_html/Laravel-5-Bootstrap-3-Starter-Site/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/ro/public_html/Laravel-5-Bootstrap-3-Starter-Site/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/ro/public_html/Laravel-5-Bootstra  
  p-3-Starter-Site/bootstrap/../vendor/autoload.php): failed to open stream:   
  No such file or directory in /home/ro/public_html/Laravel-5-Bootstrap-3-Sta  
  rter-Site/bootstrap/autoload.php on line 17                                  
  PHP Fatal error:  require(): Failed opening required '/home/ro/public_html/  
  Laravel-5-Bootstrap-3-Starter-Site/bootstrap/../vendor/autoload.php' (inclu  
  de_path='.:/usr/share/php:/usr/share/pear') in /home/ro/public_html/Laravel  
  -5-Bootstrap-3-Starter-Site/bootstrap/autoload.php on line 17

I tried to run the same project on an old virtual machine, everything worked. I copied the composer to the PC, everything also worked.
It seems like the reason is in the composer, but I can’t explain what their difference is)))))
I attach the files of the working and non-working composer:
https://yadi.sk/d/_wOQ-nk_qbsDf
https://yadi.sk/ d/juT4Vf2pqbsEw

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eldario, 2019-06-10
@eldario666

1. Remove it

"post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
 ],

2. Execute composer install
3. Return rows

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question