1 | <?php |
||
8 | class ForgotPasswordController extends Controller |
||
9 | { |
||
10 | /* |
||
11 | |-------------------------------------------------------------------------- |
||
12 | | Password Reset Controller |
||
13 | |-------------------------------------------------------------------------- |
||
14 | | |
||
15 | | This controller is responsible for handling password reset emails and |
||
16 | | includes a trait which assists in sending these notifications from |
||
17 | | your application to your users. Feel free to explore this trait. |
||
18 | | |
||
19 | */ |
||
20 | use SendsPasswordResetEmails; |
||
21 | |||
22 | /** |
||
23 | * Create a new controller instance. |
||
24 | * |
||
25 | * @return void |
||
|
|||
26 | */ |
||
27 | public function __construct() |
||
31 | |||
32 | /** |
||
33 | * Display the form to request a password reset link. |
||
34 | * |
||
35 | * @return \Illuminate\Http\Response |
||
36 | */ |
||
37 | public function showLinkRequestForm() |
||
41 | |||
42 | /** |
||
43 | * Validate the email for the given request. |
||
44 | * |
||
45 | * @param \Illuminate\Http\Request $request |
||
46 | * @return void |
||
47 | */ |
||
48 | protected function validateEmail(Request $request) |
||
61 | |||
62 | /** |
||
63 | * Get the response for a successful password reset link. |
||
64 | * |
||
65 | * @param string $response |
||
66 | * |
||
67 | * @return \Illuminate\Http\RedirectResponse |
||
68 | */ |
||
69 | protected function sendResetLinkResponse($response) |
||
75 | } |
||
76 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.