简体   繁体   中英

How to run “composer update” on test/production server?

I'm developing an application in laravel, I have completed it on localhost, but when I run it on test server it shows me error

Class 'Collective\Html\HtmlServiceProvider' not found

I think it need to update composer. But how do I do it on test server..!

Please help me I'm new to laravel and web hosting. Thank you.

你必须做一个

composer install

you have 3 options

  1. Copy /vendor folder via FTP - simple
  2. Install and run Composer via terminal - can be forbidden
  3. Run composer update from PHP

This is complete solution for 3. with description. https://stackoverflow.com/a/38396047/2583652

code here: https://github.com/whipsterCZ/laravel-libraries/blob/master/public/composer.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM