feat : common redis cache and common logger

This commit is contained in:
2025-09-14 15:58:45 +08:00
parent 48ad2ebd1b
commit 0db9995c19
15 changed files with 640 additions and 14 deletions

View File

@@ -31,4 +31,13 @@ final class AdminUserRepository extends BaseRepository
->where('username', $username)
->first();
}
/**
* @param mixed $id
* @return array|null
*/
public function findById(mixed $id): ?array
{
return $this->getQuery()->whereKey($id)->first()?->toArray() ?? null;
}
}