add nested array validation to form requests

This commit is contained in:
2024-11-09 11:36:16 +03:30
parent fbb4db5e60
commit 117bf0269e
5 changed files with 33 additions and 3 deletions

View File

@@ -13,8 +13,8 @@ return new class extends Migration
{
Schema::create('azmayesh_field_azmayesh_type', function (Blueprint $table) {
$table->id();
$table->foreignId('azmayesh_field_id')->constrained('azmayesh_fields');
$table->foreignId('azmayesh_type_id')->constrained('azmayesh_types');
$table->foreignId('azmayesh_field_id')->constrained('azmayesh_fields')->cascadeOnDelete();
$table->foreignId('azmayesh_type_id')->constrained('azmayesh_types')->cascadeOnDelete();
$table->timestamps();
});
}