-
tests/Feature/ApiAuth/LoginTest.php
Open in GitHubclass LoginTest extends ApiAuthTestCase { // protected function getXsrfTokenFromResponse(TestResponse $response): string { $cookie = collect($response->headers->getCookies())->first(function (Cookie $cookie) { return $cookie->getName() === 'XSRF-TOKEN'; }); return $cookie ? $cookie->getValue() : ''; } }