Revived API POST /captcha/{captcha_uuid}.
Receiving captcha information for validation.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Models\Captcha;
|
||||
use App\Models\CaptchaToken;
|
||||
|
||||
final class CaptchaRepository
|
||||
{
|
||||
@@ -10,4 +11,9 @@ final class CaptchaRepository
|
||||
{
|
||||
return Captcha::query()->where('id', $id)->first();
|
||||
}
|
||||
|
||||
public function getCaptchaByUuid(CaptchaToken $captchaToken, string $uuid): ?Captcha
|
||||
{
|
||||
return $captchaToken->captchas()->where('uuid', $uuid)->first();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user