Commit 2fb780b6 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #2981 from jasonlewis/fix/auth-csrf-filters

Fix for the Auth filter and docblock stuff for CSRF filter.
parents 962ae1b6 5bdf965a
<?php namespace App\Http\Filters;
use Illuminate\Http\Request;
use Illuminate\Routing\Route;
use Auth, Redirect, Response;
class AuthFilter {
......@@ -8,10 +9,11 @@ class AuthFilter {
/**
* Run the request filter.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
public function filter(Request $request)
public function filter(Route $route, Request $request)
{
if (Auth::guest())
{
......
......@@ -10,7 +10,11 @@ class CsrfFilter {
/**
* Run the request filter.
*
* @return mixed
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return void
*
* @throws \Illuminate\Session\TokenMismatchException
*/
public function filter(Route $route, Request $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