| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ForgotPasswordController extends Controller |
||
| 10 | { |
||
| 11 | /* |
||
| 12 | |-------------------------------------------------------------------------- |
||
| 13 | | Password Reset Controller |
||
| 14 | |-------------------------------------------------------------------------- |
||
| 15 | | |
||
| 16 | | This controller is responsible for handling password reset emails and |
||
| 17 | | includes a trait which assists in sending these notifications from |
||
| 18 | | your application to your users. Feel free to explore this trait. |
||
| 19 | | |
||
| 20 | */ |
||
| 21 | |||
| 22 | use SendsPasswordResetEmails; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Create a new controller instance. |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | public function __construct() |
||
| 30 | { |
||
| 31 | $this->middleware('chief-guest'); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function showLinkRequestForm() |
||
| 35 | { |
||
| 36 | return view('chief::auth.passwords.email'); |
||
| 37 | } |
||
| 38 | |||
| 39 | protected function broker() |
||
| 40 | { |
||
| 41 | return (new ChiefPasswordBrokerResolver(app()))->resolve(); |
||
| 42 | } |
||
| 44 |