classes/Fields/ManyToManyChecklist.php
protected function generateBox($row)
    {
        return [
            'name' => $this->boxName(),
            'value' => $row->getKey(),
            'checked' => ($children = $this->children())
                && $children->contains($row->getKey()),

            // Former is giving these a class of "form-control" which isn't correct
            'class' => false,

            // Add the model instance so the decorator can use it
            'model' => $row,
        ];
    }
protected function generateBox($row)
    {
        return [
            'name' => $this->boxName(),
            'value' => $row->getKey(),
            'checked' => ($children = $this->children())
                && $children->contains($row->getKey()),

            // Former is giving these a class of "form-control" which isn't correct
            'class' => false,

            // Add the model instance so the decorator can use it
            'model' => $row,
        ];
    }
protected function generateBox ( $ row ) { return [ 'name' => $ this -> boxName ( ) , 'value' => $ row -> getKey ( ) , 'checked' => ( $ children = $ this -> children ( ) ) && $ children -> contains ( $ row -> getKey ( ) ) , // Former is giving these a class of "form-control" which isn't correct 'class' => false , // Add the model instance so the decorator can use it 'model' => $ row , ] ; }
Take a model instance and generate a checkbox for it

@param  Illuminate\Database\Eloquent\Model $row
@return array                              Configuration that is used by Former for a checkbox
Take a model instance and generate a checkbox for it