<?php

namespace App\Repositories;

use App\Models\MemberQrToken;

class MemberQrTokenRepository
{
    public function findByTokenWithMember(string $token): ?MemberQrToken
    {
        return MemberQrToken::query()
            ->with(['member', 'member.academies:id', 'member.dependents'])
            ->where('token', $token)
            ->first();
    }
}

