mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Fix method call.
This commit is contained in:
parent
e5e7af82a6
commit
714f6a5574
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user