menu Controller

This commit is contained in:
merdan 2022-09-23 14:33:55 +05:00
parent 481bcbdea3
commit b32c538b29
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ class CreateMenusTable extends Migration
$table->string('locale');
$table->unique(['menu_id', 'locale']);
$table->foreign('menu_id')->references('id')->on('menus')->onDelete('cascade');
$table->integer('locale_id')->nullable()->unsigned();
$table->foreign('locale_id')->references('id')->on('locales')->onDelete('cascade');
});
}