src/Request.php
public static function old($key = null)
    {
        if (is_null($key)) {
            return session()->getFlashMessage('request') ?: '';
        }

        return session()->getFlashMessage($key) ?: '';
    }
public static function old($key = null)
    {
        if (is_null($key)) {
            return session()->getFlashMessage('request') ?: '';
        }

        return session()->getFlashMessage($key) ?: '';
    }
public static function old ( $ key = null ) { if ( is_null ( $ key ) ) { return session ( ) -> getFlashMessage ( 'request' ) ? : '' ; } return session ( ) -> getFlashMessage ( $ key ) ? : '' ; }
Get old request value from session.

@param $key

@return string
Get old request value from session .