public function method($method = 'POST')
    {
        if (strtolower($method) == 'put') {
            $this->hidden('_method')->default($method);

            return $this;
        }

        return $this->attribute('method', strtoupper($method));
    }
public function method($method = 'POST')
    {
        if (strtolower($method) == 'put') {
            $this->hidden('_method')->default($method);

            return $this;
        }

        return $this->attribute('method', strtoupper($method));
    }
public function method ( $ method = 'POST' ) { if ( strtolower ( $ method ) == 'put' ) { $ this -> hidden ( '_method' ) -> default ( $ method ) ; return $ this ; } return $ this -> attribute ( 'method' , strtoupper ( $ method ) ) ; }
Method of the form.

@param string $method

@return $this
Method of the form .