1 | <?php |
||
24 | class UserSettingsController extends AuthorizedController |
||
25 | { |
||
26 | /** |
||
27 | * The user repository instance. |
||
28 | * |
||
29 | * @var \Rinvex\Fort\Contracts\UserRepositoryContract |
||
30 | */ |
||
31 | protected $userRepository; |
||
32 | |||
33 | /** |
||
34 | * Create a new profile update controller instance. |
||
35 | * |
||
36 | * @param \Rinvex\Fort\Contracts\UserRepositoryContract $userRepository |
||
37 | * |
||
38 | * @return void |
||
|
|||
39 | */ |
||
40 | public function __construct(UserRepositoryContract $userRepository) |
||
46 | |||
47 | /** |
||
48 | * Show the account update form. |
||
49 | * |
||
50 | * @return \Illuminate\Http\Response |
||
51 | */ |
||
52 | public function edit() |
||
59 | |||
60 | /** |
||
61 | * Process the account update form. |
||
62 | * |
||
63 | * @param \Rinvex\Fort\Http\Requests\Frontend\ProfileUpdate $request |
||
64 | * |
||
65 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
66 | */ |
||
67 | public function update(ProfileUpdate $request) |
||
102 | |||
103 | /** |
||
104 | * Get current user. |
||
105 | * |
||
106 | * @return \Rinvex\Fort\Contracts\AuthenticatableContract |
||
107 | */ |
||
108 | protected function currentUser() |
||
112 | } |
||
113 |
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.