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 | /** |
||
28 | * Create a new controller instance. |
||
29 | * |
||
30 | * @return void |
||
|
|||
31 | */ |
||
32 | public function __construct() |
||
45 | |||
46 | // ------------------------------------------------------- |
||
47 | // Laravel overwrites for loading backpack views |
||
48 | // ------------------------------------------------------- |
||
49 | |||
50 | /** |
||
51 | * Display the password reset view for the given token. |
||
52 | * |
||
53 | * If no token is present, display the link request form. |
||
54 | * |
||
55 | * @param \Illuminate\Http\Request $request |
||
56 | * @param string|null $token |
||
57 | * |
||
58 | * @return \Illuminate\Http\Response |
||
59 | */ |
||
60 | public function showResetForm(Request $request, $token = null) |
||
68 | |||
69 | /** |
||
70 | * Get the broker to be used during password reset. |
||
71 | * |
||
72 | * @return \Illuminate\Contracts\Auth\PasswordBroker |
||
73 | */ |
||
74 | public function broker() |
||
80 | |||
81 | /** |
||
82 | * Get the guard to be used during password reset. |
||
83 | * |
||
84 | * @return \Illuminate\Contracts\Auth\StatefulGuard |
||
85 | */ |
||
86 | protected function guard() |
||
90 | } |
||
91 |
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.