Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

Error on envoy deploy #899

Open fiter92 opened 6 years ago

fiter92 commented 6 years ago

Hello! I'm using envoy to deploy my laravel on VPS, and there is some error:

[-@-]: Generating optimized autoload files
[-@-]: Illuminate\Foundation\ComposerScripts::postInstall
[-@-]:  > php artisan optimize
[-@-]:  PHP Fatal error:  Class 'Zizaco\Entrust\EntrustServiceProvider' not found in /var/www/www-root/data/www/.../releases/20180209224016/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 208
[-@-]:  [Symfony\Component\Debug\Exception\FatalErrorException]
[-@-]: Class 'Zizaco\Entrust\EntrustServiceProvider' not found
[-@-]:  Script php artisan optimize handling the post-install-cmd event returned with error code 255

my composer.json

    "require": {
        "php": ">=5.6.4",
        "laravel/framework": "5.4.*",
        "laravel/tinker": "~1.0",
        "martinlindhe/laravel-vue-i18n-generator": "^0.1.12",
        "zizaco/entrust": "5.2.x-dev"
    },