/** * Get the ID attribute for a field name. * * @param string $name * @param array $attributes * @return string * @static */ public static function getIdAttribute($name, $attributes) { return \Illuminate\Html\FormBuilder::getIdAttribute($name, $attributes); }
/** * @param string $name * @param array $attributes * @return null|string */ public function getIdAttribute($name, $attributes) { if ($id = parent::getIdAttribute($name, $attributes)) { return $id; } if (Arr::get($attributes, 'type') !== 'hidden') { return $name; } return null; }