1 | <?php |
||
9 | class ResetPasswordController extends Controller |
||
10 | { |
||
11 | /* |
||
12 | |-------------------------------------------------------------------------- |
||
13 | | Password Reset Controller |
||
14 | |-------------------------------------------------------------------------- |
||
15 | | |
||
16 | | This controller is responsible for handling password reset requests |
||
17 | | and uses a simple trait to include this behavior. You're free to |
||
18 | | explore this trait and override any methods you wish to tweak. |
||
19 | | |
||
20 | */ |
||
21 | |||
22 | use ResetsPasswords; |
||
23 | |||
24 | /** |
||
25 | * The URL to redirect users to after password reset. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | public $redirectTo = '/'; |
||
30 | |||
31 | /** |
||
32 | * Create a new controller instance. |
||
33 | * |
||
34 | * @return void |
||
|
|||
35 | */ |
||
36 | public function __construct() |
||
40 | |||
41 | /** |
||
42 | * Return the rules used when validating password reset. |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | protected function rules() |
||
54 | } |
||
55 |
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.