Why do I have to run “composer dump-autoload” command to make migrations work in laravel?

后端 未结 3 1555
你的背包
你的背包 2020-11-29 19:08

I have built some migration classes in my application to create the tables I need, but I keep getting errors. I need to run this command:

composer dump-autoloa

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 19:31

    Short answer: classmaps are static while PSR autoloading is dynamic.

    If you don't want to use classmaps, use PSR autoloading instead.

提交回复
热议问题