PHP 클래스 Laravel\Lumen\Http\Middleware\VerifyCsrfToken

파일 보기 프로젝트 열기: ctrlaltdylan/MirrorMirror 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$encrypter Illuminate\Contracts\Encryption\Encrypter The encrypter implementation.

공개 메소드들

메소드 설명
__construct ( Illuminate\Contracts\Encryption\Encrypter $encrypter ) : void Create a new middleware instance.
handle ( Illuminate\Http\Request $request, Closure $next ) : Illuminate\Http\Response Handle an incoming request.

보호된 메소드들

메소드 설명
addCookieToResponse ( Illuminate\Http\Request $request, Illuminate\Http\Response $response ) : Illuminate\Http\Response Add the CSRF token to the response cookies.
isReading ( Illuminate\Http\Request $request ) : boolean Determine if the HTTP request uses a ‘read’ verb.
tokensMatch ( Illuminate\Http\Request $request ) : boolean Determine if the session and input CSRF tokens match.

메소드 상세

__construct() 공개 메소드

Create a new middleware instance.
public __construct ( Illuminate\Contracts\Encryption\Encrypter $encrypter ) : void
$encrypter Illuminate\Contracts\Encryption\Encrypter
리턴 void

addCookieToResponse() 보호된 메소드

Add the CSRF token to the response cookies.
protected addCookieToResponse ( Illuminate\Http\Request $request, Illuminate\Http\Response $response ) : Illuminate\Http\Response
$request Illuminate\Http\Request
$response Illuminate\Http\Response
리턴 Illuminate\Http\Response

handle() 공개 메소드

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next ) : Illuminate\Http\Response
$request Illuminate\Http\Request
$next Closure
리턴 Illuminate\Http\Response

isReading() 보호된 메소드

Determine if the HTTP request uses a ‘read’ verb.
protected isReading ( Illuminate\Http\Request $request ) : boolean
$request Illuminate\Http\Request
리턴 boolean

tokensMatch() 보호된 메소드

Determine if the session and input CSRF tokens match.
protected tokensMatch ( Illuminate\Http\Request $request ) : boolean
$request Illuminate\Http\Request
리턴 boolean

프로퍼티 상세

$encrypter 보호되어 있는 프로퍼티

The encrypter implementation.
protected Encrypter,Illuminate\Contracts\Encryption $encrypter
리턴 Illuminate\Contracts\Encryption\Encrypter