public function input($prefix = 'jelly/field', $data = array()) { if (Arr::get($data, 'add_link_view') == '') { $data['add_link_view'] = $prefix . '/hasmanyuniquely/add_link'; } return parent::input($prefix, $data); }
/** * Provides the input with the ids variable. An array of * all the ID's in the foreign model that this record owns. * * @param string $prefix * @param string $data * @return void */ public function input($prefix = 'jelly/field', $data = array()) { $data['id'] = $this->get($data['model'], NULL)->load()->id(); return parent::input($prefix, $data); }