| Total Complexity | 2 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class VerifyCsrfToken extends Middleware |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Indicates whether the XSRF-TOKEN cookie should be set on the response. |
||
| 12 | * |
||
| 13 | * @var boolean |
||
| 14 | */ |
||
| 15 | protected $addHttpCookie = false; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The URIs that should be excluded from CSRF verification. |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $except = [ |
||
| 23 | ]; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * OVERRIDE to make adding XSRF-TOKEN cookie optional |
||
| 27 | * |
||
| 28 | * Add the CSRF token to the response cookies. |
||
| 29 | * |
||
| 30 | * @param \Illuminate\Http\Request $request Incoming request. |
||
| 31 | * @param \Symfony\Component\HttpFoundation\Response $response Outgoing response. |
||
| 32 | * @return \Symfony\Component\HttpFoundation\Response |
||
| 33 | */ |
||
| 34 | protected function addCookieToResponse($request, $response) |
||
| 55 |