Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| ResetPasswordController | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| guard | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| redirectTo | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Http\Controllers\Bo\Auth; |
| 4 | |
| 5 | use App\Http\Controllers\Controller; |
| 6 | use Illuminate\Contracts\Auth\StatefulGuard; |
| 7 | use Illuminate\Foundation\Auth\ResetsPasswords; |
| 8 | use Illuminate\Support\Facades\Auth; |
| 9 | |
| 10 | class ResetPasswordController extends Controller |
| 11 | { |
| 12 | use ResetsPasswords; |
| 13 | |
| 14 | /** |
| 15 | * Get the guard to be used during authentication. |
| 16 | * |
| 17 | * @return \Illuminate\Contracts\Auth\StatefulGuard |
| 18 | */ |
| 19 | protected function guard(): StatefulGuard |
| 20 | { |
| 21 | return Auth::guard('backend'); |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Where to redirect users after login. |
| 26 | * |
| 27 | * @return string |
| 28 | */ |
| 29 | protected function redirectTo(): string |
| 30 | { |
| 31 | return \route('bo.login'); |
| 32 | } |
| 33 | } |