Form.php
public static function open($action = '', array $attributes = null) : string
    {
        // Add the form action to the attributes
        $attributes['action'] = $action;

        if ( ! isset($attributes['method'])) {

            // Use POST method
            $attributes['method'] = 'post';
        }

        return '<form'.Html::attributes($attributes).'>';
    }
public static function open($action = '', array $attributes = null) : string
    {
        // Add the form action to the attributes
        $attributes['action'] = $action;

        if ( ! isset($attributes['method'])) {

            // Use POST method
            $attributes['method'] = 'post';
        }

        return '<form'.Html::attributes($attributes).'>';
    }
public static function open ( $ action = '' , array $ attributes = null ) : string { // Add the form action to the attributes $ attributes [ 'action' ] = $ action ; if ( ! isset ( $ attributes [ 'method' ] ) ) { // Use POST method $ attributes [ 'method' ] = 'post' ; } return '<form' . Html :: attributes ( $ attributes ) . '>' ; }
Create an opening HTML form tag.

// Form will submit back to the current page using POST
echo Form::open();

// Form will submit to 'search' using GET
echo Form::open('search', array('method' => 'get'));

// When "file" inputs are present, you must include the "enctype"
echo Form::open(null, array('enctype' => 'multipart/form-data'));

@param string $action     Form action, defaults to the current request URI.
@param array $attributes HTML attributes.
@return string
Create an opening HTML form tag .