@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | protected function mapWebRoutes() |
| 53 | 53 | { |
| 54 | 54 | Route::middleware('web') |
| 55 | - ->namespace($this->namespace) |
|
| 56 | - ->group(base_path('routes/web.php')); |
|
| 55 | + ->namespace($this->namespace) |
|
| 56 | + ->group(base_path('routes/web.php')); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
| 66 | 66 | protected function mapApiRoutes() |
| 67 | 67 | { |
| 68 | 68 | Route::prefix('api') |
| 69 | - ->middleware('api') |
|
| 70 | - ->namespace($this->namespace) |
|
| 71 | - ->group(base_path('routes/api.php')); |
|
| 69 | + ->middleware('api') |
|
| 70 | + ->namespace($this->namespace) |
|
| 71 | + ->group(base_path('routes/api.php')); |
|
| 72 | 72 | } |
| 73 | 73 | } |
@@ -68,7 +68,9 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | protected function attemptLogin(Request $request) |
| 70 | 70 | { |
| 71 | - if ($this->username() === 'email') return $this->attemptLoginAtAuthenticatesUsers($request); |
|
| 71 | + if ($this->username() === 'email') { |
|
| 72 | + return $this->attemptLoginAtAuthenticatesUsers($request); |
|
| 73 | + } |
|
| 72 | 74 | if ( ! $this->attemptLoginAtAuthenticatesUsers($request)) { |
| 73 | 75 | return $this->attempLoginUsingUsernameAsAnEmail($request); |
| 74 | 76 | } |