1.创建Migration
$ php artisan make:migration create_issues_table --create=issues
2.编辑Migration
public function up()
{
Schema::create('issues', function (Blueprint $table) {
$table->increments('id');
$table->string('title'); // 标题字段
$table->timestamps();
});
}
3.迁移Migration
$ php artisan migrate
网友评论