1

I'm using Laravel 5.1 in Cloud9 IDE but cannot do a composer update (permission denied), that way I cannot install laravelcollective (Forms/Html) from composer. I try copy the laravelcollective from my local PC and edit the App providers and aliases but get the error:

FatalErrorException in ProviderRepository.php line 146:
Class 'Collective\Html\HtmlServiceProvider' not found

How can I install it?

Limon Monte
  • 52,539
  • 45
  • 182
  • 213
Ique
  • 17
  • 5

1 Answers1

0

Try to chmod 775 your storage folder which is located in root directory of the laravel framework if you are using laravel 5 or app/storage if you are using laravel 4.

This should solve your problem

Harry Geo
  • 1,163
  • 3
  • 10
  • 24
  • I ran "chmod 775 storage" but keep getting the error: `[ErrorException] file_put_contents(/home/ubuntu/.composer/cache/repo/https---packagist.org/provider-laravelcollective$html.json): failed to open stream: Permission denied` – Ique Jun 22 '15 at 13:54
  • You should do a recursive `chmod` `sudo chmod -R 775 storage` inside root laravel folder if you are using laravel 5 or `sudo chmod -R 775 app/storage` inside laravel's root folder if you are using laravel 4. – Harry Geo Jun 22 '15 at 14:50
  • It works. I did 1) `sudo su`, 2) `chmod -R 775 storage`, 3) `composer update`. Maybe a simple `sudo su` and a `composer update` would solve. – Ique Jun 23 '15 at 13:15