MedicOneSystems / MedicOneSystems/livewire-datatables
How to count the results of the query?
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to hide the table when there are no results for the query I make with query builder.
But how do I retrieve the count of the results as a value from the LivewireDatatable model?
I can not read this anywhere in the documentation and I can't seem to get it done.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is identified. Clarify the supported way to count query-builder results and the intended empty-table behavior, then document that workflow and verify the example against the current Laravel/Livewire datatable API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100