Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doughnut returns empty arrays #10

Open
agumaxwellforcode opened this issue Jun 26, 2024 · 1 comment
Open

Doughnut returns empty arrays #10

agumaxwellforcode opened this issue Jun 26, 2024 · 1 comment

Comments

@agumaxwellforcode
Copy link

Trend works, same with Value, but Doughnut doesn't work

[$labels, $data] = Doughnut::make(User::class)
->options(UserSexEnum::class)
->count('sex', 'sex');

returns
[
[],
[]
]

@sakanjo
Copy link
Owner

sakanjo commented Jun 30, 2024

I fail to discover why this happens, could you provide more information about the used enum and the model ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants