|
@@ -1,6 +1,7 @@
|
|
|
<?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())
|
|
|
{
|
|
@@ -26,4 +28,4 @@ class AuthFilter {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-}
|
|
|
+}
|