| 1 | <?php |
||
| 12 | class RedirectIfAuthenticated |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * The Guard implementation. |
||
| 16 | * |
||
| 17 | * @var Guard |
||
| 18 | */ |
||
| 19 | protected $auth; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a new filter instance. |
||
| 23 | * RedirectIfAuthenticated constructor. |
||
| 24 | * @param Guard $auth |
||
| 25 | */ |
||
| 26 | public function __construct(Guard $auth) |
||
| 27 | { |
||
| 28 | $this->auth = $auth; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Handle an incoming request. |
||
| 33 | * |
||
| 34 | * @param \Illuminate\Http\Request $request |
||
| 35 | * @param \Closure $next |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | public function handle($request, Closure $next) |
||
| 46 | } |
||
| 47 |