function route_to(string
$method, ...
$params) { return Services::
routes()->
reverseRoute($method, ...
$params);
}}if (!
function_exists('session'
)) { /**
* A convenience method for accessing the session instance,
* or an item that has been set in the session.
*
* Examples:
* session()->set('foo', 'bar');
* $foo = session('bar');
*
* @return array|bool|float|int|object|Session|string|null
* @phpstan-return ($val is null ? Session : array|bool|float|int|object|string|null)
*/