To clear the config cache:
php artisan config:clear
or to clear and create a new cache file:
php artisan config:cache
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I installed: composer require waavi/translation 2.3.x
but i decided i didnt want it so i did: composer remove waavi/translation 2.3.x
now everytime i do something with composer or artisan i get these errors:
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Waavi\Translation\TranslationServiceProvider' not found
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
$ composer dump-autoload
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Waavi\Translation\TranslationServiceProvider' not found
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
$ php artisan config:clear
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Waavi\Translation\TranslationServiceProvider' not found
$ php artisan config:cache
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Waavi\Translation\TranslationServiceProvider' not found
$ php artisan cache:clear
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Waavi\Translation\TranslationServiceProvider' not found
the only reference i can find is in a cache dir:
grep -Ri 'waavi' ./* |grep -v logs
./bootstrap/cache/config.php: 19 => 'Waavi\\Translation\\TranslationServiceProvider',
i suspect there must be a command to clear that cache file but which command?
besides that, what is the proper way to remove packages without running into this mess?
Please or to participate in this conversation.