In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "Laravel can not create migration how to solve", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "Laravel can not create migration how to solve" it!
In Laravel projects, database migrations are sometimes created with php artisan make:migration create_xxx_table because of testing. If the created migration file database/migrations/2016_09_13_081736_create_xxx_table.php file is deleted, executing php artisan make:migration create_xxx_table again will report an error:
[ErrorException] include (/ data/wwwroot/tj.com/vendor/composer/../../database/migrations/2016_09_13_081736_create_xxx_table.php): failed to open stream: No such file or directory
Rerun composer update to execute the above command again.
After comparison, it is found that after executing the artisan command, the mapping of the newly generated classes and files is added to the vendor/composer/autoload_classmap.php and vendor/composer/autoload_static.php files, because with this mapping, the artisan command is not regenerated into a new file.
So deleting the lines with create_xxx_table in the above two files will solve this problem.
Or create a new database migration with artisan, which updates the mapping of composer classes and files. The original mapping is gone, and there will be no error in creating the previous migration.
Thank you for your reading, the above is the content of "Laravel can not create migration how to solve", after the study of this article, I believe you can not create migration Laravel how to solve this problem have a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.