if (!
function_exists('cookies'
)) { /**
* Fetches the global `CookieStore` instance held by `Response`.
*
* @param Cookie[] $cookies If `getGlobal` is false, this is passed to CookieStore's constructor
* @param bool $getGlobal If false, creates a new instance of CookieStore
*/
function cookies(array
$cookies =
[], bool
$getGlobal = true
): CookieStore
{ if ($getGlobal) { return Services::
response()->
getCookieStore();
} return new CookieStore($cookies);
}}if (!
function_exists('csrf_token'
)) { /**
* Returns the CSRF token name.
* Can be used in Views when building hidden inputs manually,
* or used in javascript vars when using APIs.
*/