0

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.

Aamir
  • 2,173
  • 1
  • 29
  • 58
  • 2
    if you need to run composer update you need to access your hosting server through ssh, you can use putty on windows on linux or mac you can use terminal, first you need to enable ssh on your hosting server, if you have dedicated hosting or vps you can install composer other wise you have to upload composer.phar through ftp. – umefarooq Jun 28 '16 at 05:35

2 Answers2

1

You have to do a

composer install
rap-2-h
  • 30,204
  • 37
  • 167
  • 263
Achraf Khouadja
  • 6,119
  • 4
  • 27
  • 39
0

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

Community
  • 1
  • 1
WhipsterCZ
  • 638
  • 1
  • 8
  • 13