param; $user = $this->sessionUser->user(); if ($user === null) { throw new LogicException(); } $shop = new Shop(); $shop->fill($param->toArray()); $this->logic->create($user, $shop); $res = [ "shop_id" => $shop->id, ]; return $this->successResponse($res); } }