function old(string
$key,
$default = null,
$escape = 'html'
) { // Ensure the session is loaded
if (session_status() === PHP_SESSION_NONE && ENVIRONMENT !== 'testing'
) { session(); // @codeCoverageIgnore
} $request = Services::
request();
$value =
$request->
getOldInput($key);
// Return the default value if nothing
// found in the old input.
if ($value === null
) { return $default;
} return $escape === false ?
$value :
esc($value,
$escape);
}}