in Laravel there is a class VerifyCsrfToken, in which the handle function is defined, which catches the request and checks the correspondence of the client and server tokens, then adds a cookie in response, otherwise a throw error.
public function handle($request, Closure $next) { if ( $this->isReading($request) || //проверяет метод формы на соотв. из массива ['HEAD','GET',...] $this->runningUnitTests() || $this->shouldPassThrough($request) || $this->tokensMatch($request) ){ return $this->addCookieToResponse($request, $next($request)); } throw new TokenMismatchException; } We look at the condition and see that 4 functions are checked, the priority at || starts on the left, that is (most likely I am mistaken here) the tokenMatch has the smallest priority and if the first 3 functions return true, then this function will not be taken into account in the condition that it is bad.
And actually the question is, for guru-laravel, are my arguments correct?