WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

composer dump-autoload

Submitted by barnettech on Fri, 02/09/2024 - 10:40
composer dump-autoload

https://stackoverflow.com/questions/33973967/why-do-i-have-to-run-compo…

"Basically, because Composer can't see the migration files you are creating, you are having to run the dump-autoload command which won't download anything new, but looks for all of the classes it needs to include again. It just regenerates the list of all classes that need to be included in the project (autoload_classmap.php), and this is why your migration is working after you run that command."