Skip to content

Commit

Permalink
LP-130 proofOfAddressTypeFields function create
Browse files Browse the repository at this point in the history
  • Loading branch information
mah-shamim committed Nov 18, 2023
1 parent 5a0f77d commit 91778b7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Fintech\Auth\Http\Requests\StoreUserRequest;
use Fintech\Auth\Http\Requests\UpdateUserRequest;
use Fintech\Auth\Http\Requests\UserAuthResetRequest;
use Fintech\Auth\Http\Resources\ProofAddressTypeResource;
use Fintech\Auth\Http\Resources\UserCollection;
use Fintech\Auth\Http\Resources\UserResource;
use Fintech\Core\Exceptions\DeleteOperationException;
Expand Down Expand Up @@ -323,4 +324,18 @@ public function reset(string|int $id, string $field, UserAuthResetRequest $reque
return $this->failed($exception->getMessage());
}
}

public function proofOfAddressTypeFields(): ProofAddressTypeResource|JsonResponse
{
try {
$proofOfAddressTypeFields = config('fintech.auth.proof_of_address_types');

return new ProofAddressTypeResource($proofOfAddressTypeFields);

} catch (Exception $exception) {

return $this->failed($exception->getMessage());
}
}

}

0 comments on commit 91778b7

Please sign in to comment.