1. Home
  2. Docs
  3. Laraship
  4. Configuration
  5. Tables Configuration

Tables Configuration

Laraship is using Laravel DataTable for tables and listing, we added another layer on top of it to make it more configurable and powerful. under each Module, there is a folder called DataTables, which contains the DataTables configuration.







Laraship DataTable utilized Presenters and Transformers to transform and display the content in formatted ways, like tags, links, or a popup. so you should see an additional Folder called Transformer and Presenter Classes.

The model presenter is set under the Module config file, for example, the Product presenter in the commerce module can be found under the ecommerce.php file in the config folder



and inside the Presenter Class, you specify the transformer class associated with the Presenter


under DataTable Class you have the ability to define the following

  1. Available Columns:


2. Available Filters with the Types and Data Source:


3. Bulk Actions: actions available when selecting multiple records on the table:


Enable Query Builder:

Query Builder is a powerful feature to provide more flexibility and options in filtering data tables, they can be enabled globally by setting the variable QUERY_BUILDER_FILTER_ENABLED under .env file to true, if you want to add it to specific data table you can add the following function to the DataTable class


70% OFF

No Minimum, No Exceptions