Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 /**
  * @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;
 }