MedicOneSystems / MedicOneSystems/livewire-datatables

How to count the results of the query?

Open
#308 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.