factory问题

public function up()

{
    Schema::table('news', function (Blueprint $table) {
        //
        $table->increments('id');
        $table->string('title');
        $table->text('content');
        $table->string('post_image');
        $table->string('tags_id');
        $table->integer('cate_id');
        $table->integer('praise_num');
        $table->integer('read_num');
        $table->integer('like_num');
        $table->integer('collect_num');
        $table->tinyInteger('is_host');
        $table->tinyInteger('is_recomemt');
        $table->boolean('status');
        $table->tinyInteger('weike_type');
        $table->tinyInteger('sort');
        $table->tinyInteger('is_new');
        $table->tinyInteger('author_id');
        $table->timestamp('create_time');
        $table->timestamp('update_time');
        $table->foreign('tags_id')->references('id')->on('tags')->onDelete('cascade');
        $table->foreign('cate_id')->references('id')->on('category')->onDelete('cascade');
    });
}

这一坨代码
Base table or view not found: 1146 Table 'weike.news' doesn't exist

laravel 5.4

你没有 migrate 吧,数据库没有生成 news 表

BallOon
修改的评论也不能少于六个字哦!
JellyBool 回复 BallOon
修改的评论也不能少于六个字哦!
BallOon 回复 JellyBool
修改的评论也不能少于六个字哦!