Property | Type | Description | |
---|---|---|---|
$encrypter | Illuminate\Contracts\Encryption\Encrypter | The encrypter implementation. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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. |
public __construct ( Illuminate\Contracts\Encryption\Encrypter $encrypter ) : void | ||
$encrypter | Illuminate\Contracts\Encryption\Encrypter | |
return | void |
protected addCookieToResponse ( Illuminate\Http\Request $request, Illuminate\Http\Response $response ) : Illuminate\Http\Response | ||
$request | Illuminate\Http\Request | |
$response | Illuminate\Http\Response | |
return | Illuminate\Http\Response |
protected tokensMatch ( Illuminate\Http\Request $request ) : boolean | ||
$request | Illuminate\Http\Request | |
return | boolean |