adding action cascade on delete when deleting parent menu
This commit is contained in:
@@ -32,7 +32,8 @@ return new class extends Migration
|
|||||||
|
|
||||||
$table->foreign('parent_id')
|
$table->foreign('parent_id')
|
||||||
->references('id')
|
->references('id')
|
||||||
->on('menus');
|
->on('menus')
|
||||||
|
->cascadeOnDelete();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user