laravel 마이그레이션 외래 키 5.6
Schema::table('posts', function (Blueprint $table) {
$table->unsignedInteger('user_id');
$table->foreign('user_id')->references('id')->on('users');
});
라라벨 마이그레이션 정수
$table->bigInteger('votes');
마이그레이션 필수 필드 라라벨
$table->string('foo')->nullable(false)->change();