Skip to content

Commit

Permalink
Fix method call.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 10, 2014
1 parent e5e7af8 commit 714f6a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/CsrfMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 714f6a5

Please sign in to comment.