1 | <?php namespace Arcanesoft\Auth\Http\Controllers\Admin; |
||
15 | class ProfileController extends Controller |
||
16 | { |
||
17 | /* ------------------------------------------------------------------------------------------------ |
||
18 | | Properties |
||
19 | | ------------------------------------------------------------------------------------------------ |
||
20 | */ |
||
21 | /** |
||
22 | * The authenticated user. |
||
23 | * |
||
24 | * @var \Arcanesoft\Contracts\Auth\Models\User |
||
25 | */ |
||
26 | protected $user; |
||
27 | |||
28 | /* ------------------------------------------------------------------------------------------------ |
||
29 | | Constructor |
||
30 | | ------------------------------------------------------------------------------------------------ |
||
31 | */ |
||
32 | /** |
||
33 | * ProfileController constructor. |
||
34 | */ |
||
35 | public function __construct() |
||
42 | |||
43 | /* ------------------------------------------------------------------------------------------------ |
||
44 | | Main Functions |
||
45 | | ------------------------------------------------------------------------------------------------ |
||
46 | */ |
||
47 | public function index() |
||
56 | |||
57 | public function edit() |
||
61 | |||
62 | public function update() |
||
66 | |||
67 | public function updatePassword(UpdatePasswordRequest $request, User $user) |
||
78 | |||
79 | /* ------------------------------------------------------------------------------------------------ |
||
80 | | Other Functions |
||
81 | | ------------------------------------------------------------------------------------------------ |
||
82 | */ |
||
83 | /** |
||
84 | * Get the authenticated user. |
||
85 | * |
||
86 | * @return \Arcanesoft\Contracts\Auth\Models\User |
||
87 | */ |
||
88 | private function getAuthenticatedUser() |
||
92 | } |
||
93 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: