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