This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
sosuke.iwabuchi
/
HT_DASHBOARD
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
店舗削除ロジックの修正
develop
sosuke.iwabuchi
1 year ago
parent
7cba96d5f3
commit
c98a3feb74
1 changed files
with
6 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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();
}
}
}
}
}
}
}
Write
Preview
Loading…
Cancel
Save