Example #1
0
 public function boot()
 {
     Channels::extendFormFields(function (Form $form, $model) {
         $form->addFields(['method_data[channels]' => ['label' => "Channels", 'commentAbove' => "Select one or more channels", 'type' => 'checkboxlist', 'options' => Channel::all()->lists('name', 'id'), 'required' => true, 'trigger' => ['action' => "show", 'field' => "method", 'condition' => "value[group]"]]]);
     });
 }
 public function getChannelCodeOptions()
 {
     return Channel::all()->lists('name', 'code');
 }