| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class Authenticate extends Middleware |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Get the path the user should be redirected to when they are not authenticated. |
||
| 10 | * |
||
| 11 | * @param \Illuminate\Http\Request $request |
||
|
2 ignored issues
–
show
|
|||
| 12 | * @return string |
||
| 13 | */ |
||
| 14 | 1 | protected function redirectTo($request) |
|
|
1 ignored issue
–
show
|
|||
| 15 | { |
||
| 16 | 1 | if (WhichPortal::isManagerPortal()) { |
|
| 17 | return route('manager.login'); |
||
| 18 | } else { |
||
| 19 | 1 | return route('login'); |
|
| 20 | } |
||
| 23 |