class UserController extends ApiGuardController (View source)

Class UserController.

Methods

__construct( UserRepository $user, UserTransformer $userTransformer)

UserController constructor.

mixed
getAllUsers()

Get all users.

mixed
show($id)

Get user find id.

mixed
update( UserUpdateRequest $request, $id)

Update user.

delete($id)

Delete user.

Details

at line line 39
__construct( UserRepository $user, UserTransformer $userTransformer)

UserController constructor.

Parameters

UserRepository $user
UserTransformer $userTransformer

at line line 52
mixed getAllUsers()

Get all users.

Return Value

mixed

at line line 66
mixed show($id)

Get user find id.

Parameters

$id

Return Value

mixed

at line line 81
mixed update( UserUpdateRequest $request, $id)

Update user.

Parameters

UserUpdateRequest $request
$id

Return Value

mixed

at line line 108
delete($id)

Delete user.

Parameters

$id