19 lines
355 B
PHP
19 lines
355 B
PHP
<?php
|
|
|
|
namespace App\Repositories\Payments;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
final class GcPaymentMethodRepository
|
|
{
|
|
public function findActiveById(int $id): ?object
|
|
{
|
|
$row = DB::table('gc_payment_methods')
|
|
->where('id', $id)
|
|
->where('is_active', 1)
|
|
->first();
|
|
|
|
return $row ?: null;
|
|
}
|
|
}
|