src/Html/Options/HasData.php
public function postAjax($attributes = '')
    {
        if (! is_array($attributes)) {
            $attributes = ['url' => (string) $attributes];
        }

        unset($attributes['method']);
        array_set($attributes, 'type', 'POST');
        array_set($attributes, 'headers.X-HTTP-Method-Override', 'GET');

        return $this->ajax($attributes);
    }
public function postAjax($attributes = '')
    {
        if (! is_array($attributes)) {
            $attributes = ['url' => (string) $attributes];
        }

        unset($attributes['method']);
        array_set($attributes, 'type', 'POST');
        array_set($attributes, 'headers.X-HTTP-Method-Override', 'GET');

        return $this->ajax($attributes);
    }
public function postAjax ( $ attributes = '' ) { if ( ! is_array ( $ attributes ) ) { $ attributes = [ 'url' => ( string ) $ attributes ] ; } unset ( $ attributes [ 'method' ] ) ; array_set ( $ attributes , 'type' , 'POST' ) ; array_set ( $ attributes , 'headers.X-HTTP-Method-Override' , 'GET' ) ; return $ this -> ajax ( $ attributes ) ; }
Setup "ajax" parameter with POST method.

@param  string|array $attributes
@return $this
Setup ajax parameter with POST method .