소스 검색

店舗削除ロジックの修正

develop
sosuke.iwabuchi 1 년 전
부모
커밋
c98a3feb74
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. +6
    -2
      app/Logics/Shop/ShopLogic.php

+ 6
- 2
app/Logics/Shop/ShopLogic.php 파일 보기

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

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

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

Loading…
취소
저장