power-components/turbine
Turbine is a framework-agnostic Laravel data engine that handles search, filters, sorting, pagination, and row transformations over Eloquent, Query Builder, Collections, or Scout, returning a plain JSON envelope. Describe your grid once in PHP, then render it with React, Vue, Livewire, or any AJAX f...
Install with Composer and follow the package README for publishing config/assets or running migrations, if required:
composer require power-components/turbine
Look first at the README, the published config/turbine.php if present, and the diff for PR #4 (“Review filters”). Since v0.9.0 is still pre-1.0, pin the version in composer.json while evaluating it.
A practical first use case: add a filter to an existing review/moderation listing or query-backed screen, then verify the generated SQL, pagination counts, and empty-state behavior. Start with one filter and one test before wiring it into a larger admin workflow.
whereHas() or explicit joins with distinct() to avoid duplicate rows and incorrect pagination totals.dd()/dump() on the builder while developing filters; confirm that empty, null, and “all” values behave as intended.null, 0, and “no filter selected.” These often cause unexpected query constraints or missing rows.count(), pagination, and distinct() behavior explicitly.How can I help you explore Laravel packages today?