Download the PHP package irpcpro/table-soft without Composer
On this page you can find all versions of the php package irpcpro/table-soft. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download irpcpro/table-soft
More information about irpcpro/table-soft
Files in irpcpro/table-soft
Package table-soft
Short Description A package for managing table data.convert model data to objects of table.
License MIT
Informations about the package table-soft
Table Soft
Version: 2.0.0
A package for managing table data. convert your model or list of your data to table object, easily...
Installation
install package to your laravel project:
Register the TableSoft service provider by adding it to the providers in config/app.php
file.
If you want you can alias the TableSoft facade by adding it to the aliases in config/app.php
file.
Configurations
- Pass Collection or Builder data into the facade.
create columns
for adding column to table:
for get data from specific key name:
can use these type of data:
- int
- string
- float
- date
- bool
for sorting data:
can use these type of sorting data:
- asc
- desc
callback function for value
also use without sorting data
the second (fieldName:type) parameter must be set
set searchable:
or set after define column:
set width for column:
set measure in second parameter
- px
- %
set row counter automatically:
Important: the field name should start with `row`
set paginate for list:
if set 0 it will return all data. (without limitation)
set caching data:
id-name-table
should be a specific and unique string for this table.
get data from service:
for more:
- the response have several controller for manage your table:
the data of head
and body
have same data structure: