public function addField($type, $name, array $attributes = [])
    {
        $attributes = array_merge(compact('type', 'name'), $attributes);

        $this->fields[] = $field = new Fluent($attributes);

        return $field;
    }
public function addField($type, $name, array $attributes = [])
    {
        $attributes = array_merge(compact('type', 'name'), $attributes);

        $this->fields[] = $field = new Fluent($attributes);

        return $field;
    }
public function addField ( $ type , $ name , array $ attributes = [ ] ) { $ attributes = array_merge ( compact ( 'type' , 'name' ) , $ attributes ) ; $ this -> fields [ ] = $ field = new Fluent ( $ attributes ) ; return $ field ; }
Add a new field to the blueprint.

@param string $type
@param string $name
@param array  $attributes

@return Fluent
Add a new field to the blueprint .