increments('id'); $table->integer('$SNAKE_CASE_ENTITY_NAME$_id')->unsigned(); $table->string('locale'); $table->unique(['$SNAKE_CASE_ENTITY_NAME$_id', 'locale']); $table->foreign('$SNAKE_CASE_ENTITY_NAME$_id')->references('id')->on('$PLURAL_SNAKE_CASE_ENTITY_NAME$')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('$SNAKE_CASE_ENTITY_NAME$_translations'); } }