且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何修复“找不到基表或视图:1146"运行“php artisan migrate"命令时出错?

更新时间:2023-11-17 18:08:52

检查你的迁移文件,也许你正在使用 Schema::table,像这样:

Check your migration file, maybe you are using Schema::table, like this:

Schema::table('table_name', function ($table)  {
    // ...
});

如果你想创建一个新表,你必须使用 Schema::create:

If you want to create a new table you must use Schema::create:

Schema::create('table_name', function ($table)  {
    // ...
});

Laracast 更多信息这个链接.