您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

33 行
596B

  1. <?php
  2. namespace App\Logics\Shop;
  3. use App\Models\HtpmsCustomer\Deposit\Deposit;
  4. use App\Models\HtpmsCustomer\Mst\Shop;
  5. use App\Models\User;
  6. class ShopLogic
  7. {
  8. private User|null $customerUser = null;
  9. private Shop|null $shop = null;
  10. public function create(User $customerUser, Shop $shop)
  11. {
  12. $this->customerUser = $customerUser;
  13. $this->shop = $shop;
  14. // チェック処理
  15. $shop->save();
  16. // デポジット
  17. $deposit = new Deposit();
  18. $deposit->shop_id = $shop->idl;
  19. $deposit->save();
  20. return $shop;
  21. }
  22. }