Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Envoy raise Class 'Barryvdh\Debugbar\ServiceProvider' not found?

Tags:

laravel-5

Working with envoy in laravel 5.7 on production server I run composer with --no-dev keys:

@task( 'composer', ['on'=>$on] )
    cd {{ $release_number }}

    composer install --no-interaction --no-dev --prefer-dist

As I do not need dev part on production.

But I see error in envoy output:

[email protected]]: > @php artisan package:discover
[[email protected]]: In ProviderRepository.php line 208:
[[email protected]]: Class 'Barryvdh\Debugbar\ServiceProvider' not found
[[email protected]]: Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

In my config/app.php file I see :

   'providers' => [
        ...
        Barryvdh\Debugbar\ServiceProvider::class,

I think that this definition raise an error. How to fix it?

Thanks!

like image 871
mstdmstd Avatar asked Oct 16 '25 04:10

mstdmstd


1 Answers

Enter the boostrap/cache folder and remove all the files it contains. After removing run the command:

php artisan package:discover
like image 162
Yehor Smoliakov Avatar answered Oct 19 '25 08:10

Yehor Smoliakov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!