Laravel 5.1迁移新表无法正常工作 [英] Laravel 5.1 migration new table not working

查看:96
本文介绍了Laravel 5.1迁移新表无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在迁移时遇到了一些问题. 我创建了新的迁移文件

I have got some problem with migration. I create new migrate file

php artisan make:migration create_menu_table --create=menu

然后我编辑新的迁移文件 当我尝试迁移时,它不起作用

then i edit the new Migration file and when i try migrate it's not working

我尝试过:

php artisan migrate
php artisan migrate --force
php artisan migrate:refresh
php artisan migrate:refresh --seed
php artisan migrate:rollback
php artisan migrate:reset

但是他们不添加创建的表

but they do not add created table

我没有任何错误

感谢帮助

推荐答案

运行composer dumpautoload,然后再次尝试.

Run composer dumpautoload and then try php artisan migrate:refresh again.

希望这会有所帮助!

这篇关于Laravel 5.1迁移新表无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆