Browse Source

Fix method call.

Taylor Otwell 9 years ago
parent
commit
714f6a5574
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Middleware/CsrfMiddleware.php

+ 1 - 1
app/Http/Middleware/CsrfMiddleware.php

@@ -15,7 +15,7 @@ class CsrfMiddleware implements Middleware {
 	 */
 	public function handle($request, Closure $next)
 	{
-		if ($request->method == 'GET' || $this->tokensMatch($request))
+		if ($request->method() == 'GET' || $this->tokensMatch($request))
 		{
 			return $next($request);
 		}