Laravel 6 artisan package:discover rename bootstrap/cache/packages
I found the problem, my windows docker (version 2.1.0.3) sometimes fails to execute. I don't know how it looks like the packages.php
file just got locked. So here is the recipe to fix:
- I restarted windows,
- deleted all the files inside
bootstrap\cache
- started the containers
- run
artisan optimize
- run
composer du
Everything went back to work like a magic. :)
run this command: composer dump-autoload
This command will clean up all compiled files and their paths.
enter this command in your terminal for clear cache: php artisan cache:clear