1 | <?php |
||
9 | class ResetPasswordController extends Controller |
||
10 | { |
||
11 | protected $data = []; // the information we send to the view |
||
12 | |||
13 | /* |
||
14 | |-------------------------------------------------------------------------- |
||
15 | | Password Reset Controller |
||
16 | |-------------------------------------------------------------------------- |
||
17 | | |
||
18 | | This controller is responsible for handling password reset requests |
||
19 | | and uses a simple trait to include this behavior. You're free to |
||
20 | | explore this trait and override any methods you wish to tweak. |
||
21 | | |
||
22 | */ |
||
23 | |||
24 | use ResetsPasswords; |
||
25 | |||
26 | // where to redirect after password was reset |
||
27 | protected $redirectTo = 'admin/dashboard'; |
||
28 | |||
29 | /** |
||
30 | * Create a new controller instance. |
||
31 | * |
||
32 | * @return void |
||
|
|||
33 | */ |
||
34 | public function __construct() |
||
38 | |||
39 | // ------------------------------------------------------- |
||
40 | // Laravel overwrites for loading backpack views |
||
41 | // ------------------------------------------------------- |
||
42 | |||
43 | /** |
||
44 | * Display the password reset view for the given token. |
||
45 | * |
||
46 | * If no token is present, display the link request form. |
||
47 | * |
||
48 | * @param \Illuminate\Http\Request $request |
||
49 | * @param string|null $token |
||
50 | * |
||
51 | * @return \Illuminate\Http\Response |
||
52 | */ |
||
53 | public function showResetForm(Request $request, $token = null) |
||
61 | } |
||
62 |
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.