Browse Source

店舗削除ロジックの修正

develop
sosuke.iwabuchi 1 year ago
parent
commit
c98a3feb74
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      app/Logics/Shop/ShopLogic.php

+ 6
- 2
app/Logics/Shop/ShopLogic.php View File

@@ -37,8 +37,12 @@ class ShopLogic
{ {
$shop->delete(); $shop->delete();


foreach ($shop->users as $user) {
$user->delete();
$users = $shop->users;

if ($users !== null) {
foreach ($shop->users as $user) {
$user->delete();
}
} }
} }
} }

Loading…
Cancel
Save