Fix method call.
This commit is contained in:
@@ -15,7 +15,7 @@ class CsrfMiddleware implements Middleware {
|
|||||||
*/
|
*/
|
||||||
public function handle($request, Closure $next)
|
public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
if ($request->method == 'GET' || $this->tokensMatch($request))
|
if ($request->method() == 'GET' || $this->tokensMatch($request))
|
||||||
{
|
{
|
||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user