Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class UserController extends Controller |
||
8 | { |
||
9 | protected $user; |
||
10 | protected $api; |
||
11 | public function __construct(ApiService $api) |
||
15 | } |
||
16 | /** |
||
17 | * Display a listing of the resource. |
||
18 | * |
||
19 | * @return \Illuminate\Http\Response |
||
20 | */ |
||
21 | public function index() |
||
22 | { |
||
23 | $api = $this->api->getApi(); |
||
24 | return view('profile', compact('api')); |
||
|
|||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Remove the specified resource from storage. |
||
29 | * @return \Illuminate\Http\Response |
||
30 | * @internal param User $user |
||
31 | */ |
||
32 | public function destroy() |
||
36 | } |
||
37 | } |
||
38 |