|
@@ -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 {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-}
|
|
|
|
|
|
+}
|