Skip to content

Recipes ​

Each recipe solves one task end to end: the goal, the steps, complete working code (with a live demo you can edit) and the reasons behind the choices. They assume you know the concepts — a grid, its columns, and the modules you attach with use.

Laravel ​

RecipeWhat you get
Laravel + yajra listPoint a grid at an existing yajra/laravel-datatables controller without changing it; server-rendered HTML columns, extra page parameters, joined columns.
Laravel paginator & API resourcesUse paginate(), simplePaginate() or JsonResource::collection() JSON as a grid source.
CSRF & session expirySend the CSRF token, recognize an expired session (419, 401, redirect to login) and react in one place.

Pages ​

RecipeWhat you get
Page filter panelA filter form above the grid that sends its values with every request, plus a shareable URL.
Selection + bulk actionCheckbox selection across pages, "select all matching" and one POST that handles both.
Row actions with confirmA per-row action menu with links, requests, confirmation, permissions and disabled reasons.
ExportExcel, CSV and print on a server grid, and a server-side export for very large lists.
Custom toolbar (headless)Drive the grid from your own controls, or place your elements into the toolbar slots.

Lifecycle ​

RecipeWhat you get
Grids in tabs & modalsNo request until the grid is visible, no column re-alignment calls.
Destroy, re-init & LivewireTear down and rebuild grids safely, declarative upgrade(), Livewire and Turbo pages.

Released under the MIT License.