Browse Source

Fix parameters for the AuthFilter.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Jason Lewis 10 years ago
parent
commit
56a1baed68
1 changed files with 4 additions and 2 deletions
  1. 4 2
      app/Http/Filters/AuthFilter.php

+ 4 - 2
app/Http/Filters/AuthFilter.php

@@ -1,6 +1,7 @@
 <?php namespace App\Http\Filters;
 <?php namespace App\Http\Filters;
 
 
 use Illuminate\Http\Request;
 use Illuminate\Http\Request;
+use Illuminate\Routing\Route;
 use Auth, Redirect, Response;
 use Auth, Redirect, Response;
 
 
 class AuthFilter {
 class AuthFilter {
@@ -8,10 +9,11 @@ class AuthFilter {
 	/**
 	/**
 	 * Run the request filter.
 	 * Run the request filter.
 	 *
 	 *
+	 * @param  \Illuminate\Routing\Route  $route
 	 * @param  \Illuminate\Http\Request  $request
 	 * @param  \Illuminate\Http\Request  $request
 	 * @return mixed
 	 * @return mixed
 	 */
 	 */
-	public function filter(Request $request)
+	public function filter(Route $route, Request $request)
 	{
 	{
 		if (Auth::guest())
 		if (Auth::guest())
 		{
 		{
@@ -26,4 +28,4 @@ class AuthFilter {
 		}
 		}
 	}
 	}
 
 
-}
+}