src/Traits/Form/FormControl.php
public function setName($name)
    {
        if (false !== stripos($name, '.')) {
            $relations = explode('.', $name);
            $name = array_pop($relations);
            $this->relation = implode('.', $relations);
        }

        $this->name = $name;

        return $this;
    }
public function setName($name)
    {
        if (false !== stripos($name, '.')) {
            $relations = explode('.', $name);
            $name = array_pop($relations);
            $this->relation = implode('.', $relations);
        }

        $this->name = $name;

        return $this;
    }
public function setName ( $ name ) { if ( false !== stripos ( $ name , '.' ) ) { $ relations = explode ( '.' , $ name ) ; $ name = array_pop ( $ relations ) ; $ this -> relation = implode ( '.' , $ relations ) ; } $ this -> name = $ name ; return $ this ; }
Set element name.

@param $name

@return mixed
Set element name .