1 | <?php |
||
12 | class ForgotPasswordController extends Controller |
||
13 | { |
||
14 | /* |
||
15 | |-------------------------------------------------------------------------- |
||
16 | | Password Reset Controller |
||
17 | |-------------------------------------------------------------------------- |
||
18 | | |
||
19 | | This controller is responsible for handling password reset emails and |
||
20 | | includes a trait which assists in sending these notifications from |
||
21 | | your application to your users. Feel free to explore this trait. |
||
22 | | |
||
23 | */ |
||
24 | |||
25 | /** |
||
26 | * Create a new controller instance. |
||
27 | * |
||
28 | * @return void |
||
|
|||
29 | */ |
||
30 | public function __construct() |
||
34 | |||
35 | /** |
||
36 | * Send a reset link to the given user. |
||
37 | * |
||
38 | * @param Yab\FlightDeck\Http\Requests\ForgotPasswordRequest $request |
||
39 | * @return \Illuminate\Http\JsonResponse |
||
40 | */ |
||
41 | public function sendResetEmail(ForgotPasswordRequest $request) |
||
51 | |||
52 | /** |
||
53 | * Get the response for a successful password reset link. |
||
54 | * |
||
55 | * @param \Illuminate\Http\Request $request |
||
56 | * @param string $response |
||
57 | * @return \Illuminate\Http\JsonResponse |
||
58 | */ |
||
59 | protected function sendResetLinkResponse(Request $request, $response) |
||
66 | |||
67 | /** |
||
68 | * Get the response for a failed password reset link. |
||
69 | * |
||
70 | * @param \Illuminate\Http\Request $request |
||
71 | * @param string $response |
||
72 | * @return \Illuminate\Http\JsonResponse |
||
73 | */ |
||
74 | protected function sendResetLinkFailedResponse(Request $request, $response) |
||
81 | |||
82 | /** |
||
83 | * Get the broker to be used during password reset. |
||
84 | * |
||
85 | * @return \Illuminate\Contracts\Auth\PasswordBroker |
||
86 | */ |
||
87 | public function broker() |
||
91 | } |
||
92 |
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.