Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel deleting package with composer

I tried to delete barryvdh/laravel-debugbar from my laravel installation, and it seems I didn't make something right.

What I did so far :

  • composer remove barryvdh/laravel-debugbar
  • I deleted then the references in config/app.php

And I've got an error :

[RuntimeException]
Error Output: PHP Fatal error:
Class 'Barryvdh\Debugbar\ServiceProvider' not found in 
{mypath}\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php on line 146

I tried dump-autoload, clear-compiled, but none works.

What did I miss ?


22/02/2016 Edit : I also tried to remove ALL the vendor folder, then install it again via composer install, but I got the error again when the command php artisan clear-compiled was run angain.

like image 839
Marc Brillault Avatar asked Nov 14 '25 18:11

Marc Brillault


1 Answers

Ok, it seems I had played with artisan commands, and the configuration file was cached (via php artisan config:cache).

I deleted it (in bootstrap/cache/config.php) and everything works like a charm, but I also could have used the command php artisan config:clear to remove it.

like image 74
Marc Brillault Avatar answered Nov 17 '25 08:11

Marc Brillault



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!