基本表或视图未找到错误 [英] Base table or view not found error
本文介绍了基本表或视图未找到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
ProductTable
ProductTable
public function up()
{
Schema::create('product', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('description');
$table->string('type');
$table->integer('size');
$table->integer('price');
$table->string('image')->nullable();
$table->timestamps();
});
}
当我点击提交"时,出现错误,提示找不到基表
When I hit submit, I got error saying base table not found
推荐答案
Laravel无法找到您使用的表名的常规形式,只需在模型上指定表名即可;并检查您的视图,确保在您的资源/视图上有一个名为successs.blade.php的文件
Laravel can not find the prular form of the table name that you used, just specify your table name on your model like so; And check your view aswell make sure on your resource/view you have a file named successs.blade.php
public $table = "yourTableName";
这篇关于基本表或视图未找到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文