|
|
@ -6,6 +6,7 @@ use App\Exceptions\CustomException; |
|
|
use App\Exports\ParkingLicensePlateImportTemplateExport; |
|
|
use App\Exports\ParkingLicensePlateImportTemplateExport; |
|
|
use App\Imports\ParkingLicensePlateImport; |
|
|
use App\Imports\ParkingLicensePlateImport; |
|
|
use App\Models\ParkingLicensePlate; |
|
|
use App\Models\ParkingLicensePlate; |
|
|
|
|
|
use App\Models\ParkingSpaceType; |
|
|
use App\Services\ApiResponseService; |
|
|
use App\Services\ApiResponseService; |
|
|
use App\Services\ParkingLicensePlateService; |
|
|
use App\Services\ParkingLicensePlateService; |
|
|
use Exception; |
|
|
use Exception; |
|
|
@ -188,7 +189,7 @@ class ParkingLicensePlateController extends BaseController |
|
|
public function clear($id): JsonResponse |
|
|
public function clear($id): JsonResponse |
|
|
{ |
|
|
{ |
|
|
try { |
|
|
try { |
|
|
$this->validateId($id, ParkingLicensePlate::class); |
|
|
$this->validateId($id, ParkingSpaceType::class); |
|
|
$this->LicensePlateService->clearModel($id); |
|
|
$this->LicensePlateService->clearModel($id); |
|
|
return $this->responseService->success( |
|
|
return $this->responseService->success( |
|
|
null, |
|
|
null, |
|
|
|