service-captcha/app/Repositories/CaptchaRepository.php

14 lines
246 B
PHP
Raw Normal View History

<?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();
}
}