increments('id'); $table->integer('list_id')->unsigned()->index(); $table->integer('type')->default(0); $table->string('description'); $table->integer('width'); $table->integer('length'); $table->integer('height'); $table->integer('quantity'); $table->timestamps(); $table->foreign('list_id')->references('id')->on('packing_lists'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('packages'); } }