service-captcha/app/Repositories/CaptchaRepository.php
Leonid Nikitin 520a3ba068
Revived API POST /api/v1/captcha.
Captcha validation has been adjusted.
2023-11-26 15:09:42 +06:00

14 lines
246 B
PHP

<?php declare(strict_types=1);
namespace App\Repositories;
use App\Models\Captcha;
final class CaptchaRepository
{
public function getCaptchaById(int $id): ?Captcha
{
return Captcha::query()->where('id', $id)->first();
}
}