From d41ad218afaa2cf009e8c47411f3405ef208fe42 Mon Sep 17 00:00:00 2001 From: gisu nasrollahi <113020788+gisuNasr@users.noreply.github.com> Date: Sun, 22 Sep 2024 18:43:04 +0330 Subject: [PATCH] noActionOnDelete() added to migrations.md (#9908) * add noActionOnDelete() to migrations.md * Update migrations.md --------- Co-authored-by: Taylor Otwell --- migrations.md | 1 + 1 file changed, 1 insertion(+) diff --git a/migrations.md b/migrations.md index f86f2cab48..a22bc3e5c2 100644 --- a/migrations.md +++ b/migrations.md @@ -1194,6 +1194,7 @@ An alternative, expressive syntax is also provided for these actions: | `$table->cascadeOnDelete();` | Deletes should cascade. | | `$table->restrictOnDelete();` | Deletes should be restricted. | | `$table->nullOnDelete();` | Deletes should set the foreign key value to null. | +| `$table->noActionOnDelete();` | Prevents deletes if child records exist. |