Skip to content

Deprecated since 7.2

This page documents the classic module layer (CBController and cbInit()). It still works in every 7.x release, but new code should use resources and pages.

Use instead: Table columns: TextColumn::make('name')->searchable()->sortable().

How To Add Column At Grid Data ​

This documentation is for manual add column only instead by using Module Generator.

Open file controller that you want to add column at app/Http/Controllers/AdminModuleController.php

Code Example ​

php
$this->col[] = ['label'=>'Title','name'=>'title'];

Legend ​

AttributeDescription
labellabel of column
namename for field name

What's Next ​

Table Of Contents ​

Released under the MIT License.