| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function __invoke(ForgotPasswordEmailRequest $request) |
||
| 17 | { |
||
| 18 | $status = Password::sendResetLink($request->only('email')); |
||
| 19 | |||
| 20 | return $status === Password::RESET_LINK_SENT ? |
||
| 21 | back()->with([ |
||
| 22 | 'message' => $status, |
||
| 23 | 'type' => 'success' |
||
| 24 | ]) : back()->withErrors(['email' => $status]); |
||
| 25 | } |
||
| 27 |