1 | <?php |
||
10 | class ResetPasswordController extends Controller |
||
11 | { |
||
12 | protected $data = []; // the information we send to the view |
||
13 | |||
14 | /* |
||
15 | |-------------------------------------------------------------------------- |
||
16 | | Password Reset Controller |
||
17 | |-------------------------------------------------------------------------- |
||
18 | | |
||
19 | | This controller is responsible for handling password reset requests |
||
20 | | and uses a simple trait to include this behavior. You're free to |
||
21 | | explore this trait and override any methods you wish to tweak. |
||
22 | | |
||
23 | */ |
||
24 | |||
25 | use ResetsPasswords; |
||
26 | |||
27 | public function redirectTo() |
||
31 | |||
32 | /** |
||
33 | * Create a new controller instance. |
||
34 | * |
||
35 | * @return void |
||
|
|||
36 | */ |
||
37 | public function __construct() |
||
50 | |||
51 | // ------------------------------------------------------- |
||
52 | // Laravel overwrites for loading backpack views |
||
53 | // ------------------------------------------------------- |
||
54 | |||
55 | /** |
||
56 | * Display the password reset view for the given token. |
||
57 | * |
||
58 | * If no token is present, display the link request form. |
||
59 | * |
||
60 | * @param \Illuminate\Http\Request $request |
||
61 | * @param string|null $token |
||
62 | * |
||
63 | * @return \Illuminate\Http\Response |
||
64 | */ |
||
65 | public function showResetForm(Request $request, $token = null) |
||
73 | |||
74 | /** |
||
75 | * Get the broker to be used during password reset. |
||
76 | * |
||
77 | * @return \Illuminate\Contracts\Auth\PasswordBroker |
||
78 | */ |
||
79 | public function broker() |
||
85 | |||
86 | /** |
||
87 | * Get the guard to be used during password reset. |
||
88 | * |
||
89 | * @return \Illuminate\Contracts\Auth\StatefulGuard |
||
90 | */ |
||
91 | protected function guard() |
||
95 | } |
||
96 |
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.