src/Core/Http/Middleware/VerifyCsrfToken.php
protected function getTokenFromRequest(Request $request)
    {
        $token = $request->input($this->token) ?: $request->header($this->csrfHeader);

        if (! $token && $header = $request->header($this->xsrfHeader)) {
            $token = $this->encrypter->decrypt($header, static::serialized());
        }

        return $token;
    }
protected function getTokenFromRequest(Request $request)
    {
        $token = $request->input($this->token) ?: $request->header($this->csrfHeader);

        if (! $token && $header = $request->header($this->xsrfHeader)) {
            $token = $this->encrypter->decrypt($header, static::serialized());
        }

        return $token;
    }
protected function getTokenFromRequest ( Request $ request ) { $ token = $ request -> input ( $ this -> token ) ? : $ request -> header ( $ this -> csrfHeader ) ; if ( ! $ token && $ header = $ request -> header ( $ this -> xsrfHeader ) ) { $ token = $ this -> encrypter -> decrypt ( $ header , static :: serialized ( ) ) ; } return $ token ; }
Return the CSRF token from request.

@param Request $request

@return string
Return the CSRF token from request .