I'm using LaravelStapler package to manage image in Laravel 5.1.
I installed LaravelStapler with the following steps:
- Add "codesleeve/laravel-stapler": "^1.0"into composer.json file
- Add 'Codesleeve\LaravelStapler\Providers\L5ServiceProvider'into providers array inconfig/app.phpfile
- 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