mardi 16 février 2016

Class 'Codesleeve\LaravelStapler\Providers\L5ServiceProvider' not found when installing

I'm using LaravelStapler package to manage image in Laravel 5.1.

I installed LaravelStapler with the following steps:

  1. Add "codesleeve/laravel-stapler": "^1.0" into composer.json file
  2. Add 'Codesleeve\LaravelStapler\Providers\L5ServiceProvider' into providers array in config/app.php file
  3. Run composer install

And faced the error:

[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Codesleeve\LaravelStapler\Providers\L5ServiceProvider' not found

If i run composer install before add 'Codesleeve\LaravelStapler\Providers\L5ServiceProvider' into providers array in config/app.php file, no error occurs.

It's hard for me to deploy into productions when I need to comment out 'Codesleeve\LaravelStapler\Providers\L5ServiceProvider' before composer install and uncomment after in production.

Are there any solutions which I can install it without commenting out 'Codesleeve\LaravelStapler\Providers\L5ServiceProvider' ?

Thanks in advance !



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire