Download the PHP package catlabinteractive/laravel-table without Composer
On this page you can find all versions of the php package catlabinteractive/laravel-table. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download catlabinteractive/laravel-table
More information about catlabinteractive/laravel-table
Files in catlabinteractive/laravel-table
Package laravel-table
Short Description Laravel html table builder.
License MIT
Informations about the package laravel-table
laravel-table
Renders a charon ResourceCollection as a Bootstrap table.
Used by laravel-charon-frontend to build admin panels.
Cells
Every visible property of a resource becomes a column; columns are the union over all rows, in first-seen order.
- Scalar fields render as-is.
- Relationships (expanded
ChildValue/ChildrenValue) render as a comma separated list of related resources. Each is labelled by itsname,titleorlabelfield when it has a non-empty one, otherwise by#<identifier>; override withsetResourceLabelResolver(), which may returnnullfor a resource it has no name for and leave that one to the default. When a url resolver is set and returns a url, the label becomes a link. - Object / array fields render as JSON.
Sorting and filtering
Both are opt-in (sortable(), filterable()) and need the current url (4th constructor argument). They only
build urls and forms; the actual sorting and filtering is done by charon when the resulting request reaches the
API (?sort=name, ?sort=!name, ?name=value). Pagination parameters (page, before, after) are dropped
from those urls; every other query parameter is preserved.
The filter form is a Bootstrap 3 form-inline bar (.table-filters): one small input group per filterable field
with a humanized label (createdAt -> "Created at"), a search button and - when a filter is active - a "Clear"
link back to the unfiltered url.
Views
Publish resources/views to resources/views/vendor/table to customise table, cell, filters and
pagination.
All versions of laravel-table with dependencies
catlabinteractive/charon Version ^1.12
laravel/framework Version ^9.0 || ^10.0 || ^11.0 || ^12.0