Fix, when moving address and deleting the source system, also delete any system_logs

This commit is contained in:
Deon George 2024-06-08 21:27:42 +10:00
parent 829fe1d7a9
commit d6779e6e01

View File

@ -308,6 +308,7 @@ class SystemController extends Controller
if (Arr::get($validated,'remove')) {
$so->sessions()->detach($o->zone);
$so->logs()->delete();
$so->mailers()->detach();
$so->users()->detach();
$so->delete();