Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function addCookieToResponse($request, $response)
- {
- $config = config('session');
- $response->headers->setCookie(
- new Cookie(
- 'XSRF-TOKEN', $request->session()->token(), $this->availableAt(60 * $config['lifetime']),
- $config['path'], $config['domain'], $config['secure'], false, false, $config['same_site'] ?? null
- )
- );
- return $response;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement