src/Request.php
public function getRequestInputByType()
    {
        $data = $this->instance->getRealMethod() == 'GET' ? HttpFoundation::createFromGlobals()->query :
            HttpFoundation::createFromGlobals()->request;

        if ($data) {
            foreach ($data->all() as $key => $value) {
                session()->createFlashMessage($key, $value);
            }

            session()->createFlashMessage('request', $data);
        }

        return $data;
    }
public function getRequestInputByType()
    {
        $data = $this->instance->getRealMethod() == 'GET' ? HttpFoundation::createFromGlobals()->query :
            HttpFoundation::createFromGlobals()->request;

        if ($data) {
            foreach ($data->all() as $key => $value) {
                session()->createFlashMessage($key, $value);
            }

            session()->createFlashMessage('request', $data);
        }

        return $data;
    }
public function getRequestInputByType ( ) { $ data = $ this -> instance -> getRealMethod ( ) == 'GET' ? HttpFoundation :: createFromGlobals ( ) -> query : HttpFoundation :: createFromGlobals ( ) -> request ; if ( $ data ) { foreach ( $ data -> all ( ) as $ key => $ value ) { session ( ) -> createFlashMessage ( $ key , $ value ) ; } session ( ) -> createFlashMessage ( 'request' , $ data ) ; } return $ data ; }
get the request data base on request method.

@return \Symfony\Component\HttpFoundation\ParameterBag
get the request data base on request method .