increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->string('actual_name'); $table->string('short_name'); $table->boolean('allow_decimal'); $table->integer('created_by')->unsigned(); $table->foreign('created_by')->references('id')->on('users')->onDelete('cascade'); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('units'); } };