Commit 714f6a55 authored by Taylor Otwell's avatar Taylor Otwell

Fix method call.

parent e5e7af82
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment