1 | <?php |
||
15 | class UserController extends Controller |
||
16 | { |
||
17 | /** |
||
18 | * Display a listing of the resource. |
||
19 | * |
||
20 | * @param UserDataTable $table |
||
21 | * @return Response |
||
22 | * @throws AuthorizationException |
||
23 | */ |
||
24 | public function index(UserDataTable $table) |
||
29 | |||
30 | /** |
||
31 | * Show the form for creating a new resource. |
||
32 | * |
||
33 | * @return View |
||
34 | * @throws AuthorizationException |
||
35 | */ |
||
36 | public function create() |
||
41 | |||
42 | /** |
||
43 | * Store a newly created resource in storage. |
||
44 | * |
||
45 | * @param StoreUserFormRequest $request |
||
46 | * @return RedirectResponse |
||
47 | * @throws AuthorizationException |
||
48 | */ |
||
49 | public function store(StoreUserFormRequest $request) |
||
55 | |||
56 | /** |
||
57 | * Display the specified resource. |
||
58 | * |
||
59 | * @param User $user |
||
60 | * @return View |
||
61 | * @throws AuthorizationException |
||
62 | */ |
||
63 | public function show(User $user) |
||
68 | |||
69 | /** |
||
70 | * Show the form for editing the specified resource. |
||
71 | * |
||
72 | * @param User $user |
||
73 | * @return View |
||
74 | * @throws AuthorizationException |
||
75 | */ |
||
76 | public function edit(User $user) |
||
81 | |||
82 | /** |
||
83 | * Update the specified resource in storage. |
||
84 | * |
||
85 | * @param UpdateUserFormRequest $request |
||
86 | * @param User $user |
||
87 | * @return RedirectResponse |
||
88 | * @throws AuthorizationException |
||
89 | */ |
||
90 | public function update(UpdateUserFormRequest $request, User $user) |
||
96 | |||
97 | /** |
||
98 | * Remove the specified resource from storage. |
||
99 | * |
||
100 | * @param User $user |
||
101 | * @return RedirectResponse |
||
102 | * @throws AuthorizationException |
||
103 | * @throws Exception |
||
104 | */ |
||
105 | public function destroy(User $user) |
||
111 | } |
||
112 |