Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- <?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 QRServiceGroupRemoveController extends WebController
- {
-
- public function name(): string
- {
- return "QRサービス券駐車場グループ駐車場削除";
- }
-
- public function description(): string
- {
- return "QRサービス券駐車場グループへ駐車場を削除する";
- }
-
-
- public function __construct(protected QRServiceGroupRemoveParam $param)
- {
- parent::__construct();
- }
-
- protected function run(Request $request): JsonResponse
- {
- $param = $this->param;
-
- $group = ServiceParkingGroup::findOrFail($param->id);
- $parking = Parking::whereParkCode($param->parkingManagementCode)
- ->firstOrFail();
- QRServiceParkingGroupLogic::remove($group, $parking);
-
-
- return $this->successResponse();
- }
- }
|