You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
-
- namespace App\Http\Controllers\Web\QRService\Group;
-
- use App\Http\Controllers\Web\WebController;
- use App\Logics\QRService\QRServiceParkingGroupLogic;
- use App\Models\HtpmsCustomer\Existing\Parking;
- use App\Models\HtpmsCustomer\QRService\ServiceParkingGroup;
- use Illuminate\Http\JsonResponse;
- use Illuminate\Http\Request;
-
- class QRServiceGroupAddController extends WebController
- {
-
- public function name(): string
- {
- return "QRサービス券駐車場グループ駐車場追加";
- }
-
- public function description(): string
- {
- return "QRサービス券駐車場グループへ駐車場を追加する";
- }
-
-
- public function __construct(protected QRServiceGroupAddParam $param)
- {
- parent::__construct();
- }
-
- protected function run(Request $request): JsonResponse
- {
- $param = $this->param;
-
- $group = ServiceParkingGroup::findOrFail($param->id);
- $parking = Parking::whereParkCode($param->parkingManagementCode)
- ->firstOrFail();
- QRServiceParkingGroupLogic::add($group, $parking);
-
-
- return $this->successResponse();
- }
- }
|