1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace App\Http\Controllers\Admin; |
4
|
|
|
|
5
|
|
|
use App\Http\Requests\Admin\UserRequest; |
6
|
|
|
use Illuminate\Http\Request; |
7
|
|
|
use App\Http\Controllers\Controller; |
8
|
|
|
use App\User; |
9
|
|
|
|
10
|
|
|
class UsersController extends Controller |
11
|
|
|
{ |
12
|
|
|
/** |
13
|
|
|
* Display a listing of the resource. |
14
|
|
|
* |
15
|
|
|
* @return \Illuminate\Http\Response |
16
|
|
|
*/ |
17
|
|
|
public function index() |
18
|
|
|
{ |
19
|
|
|
// Show a list of users |
20
|
|
|
} |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* Show the form for creating a new resource. |
24
|
|
|
* |
25
|
|
|
* @return \Illuminate\Http\Response |
26
|
|
|
*/ |
27
|
|
|
public function create() |
28
|
|
|
{ |
29
|
|
|
// Show the create user form |
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* Store a newly created resource in storage. |
35
|
|
|
* |
36
|
|
|
* @param UserRequest|Request $request |
37
|
|
|
* |
38
|
|
|
* @return \Illuminate\Http\Response |
39
|
|
|
*/ |
40
|
|
|
public function store(UserRequest $request) |
|
|
|
|
41
|
|
|
{ |
42
|
|
|
// Store the user |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* Display the specified resource. |
48
|
|
|
* |
49
|
|
|
* @param User $user |
50
|
|
|
* |
51
|
|
|
* @return \Illuminate\Http\Response |
52
|
|
|
* @internal param int $id |
53
|
|
|
*/ |
54
|
|
|
public function show(User $user) |
|
|
|
|
55
|
|
|
{ |
56
|
|
|
// Show the user |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* Show the form for editing the specified resource. |
62
|
|
|
* |
63
|
|
|
* @param User $user |
64
|
|
|
* |
65
|
|
|
* @return \Illuminate\Http\Response |
66
|
|
|
* @internal param int $id |
67
|
|
|
*/ |
68
|
|
|
public function edit(User $user) |
|
|
|
|
69
|
|
|
{ |
70
|
|
|
// Edit the user |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* Update the specified resource in storage. |
76
|
|
|
* |
77
|
|
|
* @param UserRequest|Request $request |
78
|
|
|
* @param User $user |
79
|
|
|
* |
80
|
|
|
* @return \Illuminate\Http\Response |
81
|
|
|
* @internal param int $id |
82
|
|
|
*/ |
83
|
|
|
public function update(UserRequest $request, User $user) |
|
|
|
|
84
|
|
|
{ |
85
|
|
|
// Update the user |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* Remove the specified resource from storage. |
91
|
|
|
* |
92
|
|
|
* @param User $user |
93
|
|
|
* |
94
|
|
|
* @return \Illuminate\Http\Response |
95
|
|
|
* @internal param int $id |
96
|
|
|
*/ |
97
|
|
|
public function destroy(User $user) |
|
|
|
|
98
|
|
|
{ |
99
|
|
|
// Destroy the user |
100
|
|
|
} |
101
|
|
|
} |
102
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.