public function __construct(Table $table) { $this->setColumns(['simple_text', ['heading' => 'Is this awesome?', 'value' => function (ExampleModel $entry) { if ($entry->isAwesome()) { return 'Sure is.'; } return 'Nope.'; }]]); parent::__construct($table); }
/** * Create a new MultipleTableBuilder instance. * * @param Table $table * @param TableCollection $tables */ public function __construct(Table $table, TableCollection $tables) { $this->tables = $tables; parent::__construct($table); }