14 lines
246 B
PHP
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();
|
||
|
}
|
||
|
}
|