【发布时间】:2022-03-23 13:21:07
【问题描述】:
我有表格索引页,但仍然有这个错误!这是我的代码:
public function up()
{
Schema::create('index', function (Blueprint $table) {
$table->increments('id');
$table->text('about');
$table->string('video');
$table->timestamps();
});
}
型号:
class Index extends Model
{
protected $fillable = [
'about' ,'video'
];
}
索引从何而来?
【问题讨论】:
-
请发布您的模型,您是否按模型调用它?
-
我已经编辑过了
-
我已经发布了答案