Revived API POST /api/v1/captcha.
Captcha validation has been adjusted.
This commit is contained in:
13
app/Repositories/CaptchaRepository.php
Normal file
13
app/Repositories/CaptchaRepository.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user