class UserController extends Controller

Traits

AuthorizesRequests
ValidatesRequests

Methods

bool
isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

RedirectResponse
fuzzyRedirect()

Redirects to the _redirect URL, to a route or else back.

__construct()

Creates a new UserController instance.

Response
find(string $pattern)

Finds all users with firstnames or lastnames like $pattern.

Response
index(Request $request)

Shows a list of all users.

show(int $id)

Shows the specified user.

showOwn(Request $request)

Shows the requesting user.

Response
update(UpdateUser $request)

Updates the attributes of the specified user.

Response
updateOwn(UpdateOwnUser $request)

Updates the attributes of the own user.

store(StoreUser $request)

Creates a new user.

Response
destroy(DestroyUser $request)

Removes the specified user.

Response
destroyOwn(DestroyOwnUser $request)

Removes the own user.

Details

in Controller at line 21
bool isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

Parameters

Request $request

Return Value

bool

in Controller at line 15
protected RedirectResponse fuzzyRedirect()

Redirects to the _redirect URL, to a route or else back.

Return Value

RedirectResponse

at line 21
__construct()

Creates a new UserController instance.

at line 62
Response find(string $pattern)

Finds all users with firstnames or lastnames like $pattern.

Returns the first 10 results.

Parameters

string $pattern

Return Value

Response

at line 103
Response index(Request $request)

Shows a list of all users.

Parameters

Request $request

Return Value

Response

at line 137
User show(int $id)

Shows the specified user.

Parameters

int $id

Return Value

User

at line 173
User showOwn(Request $request)

Shows the requesting user.

Parameters

Request $request

Return Value

User

at line 209
Response update(UpdateUser $request)

Updates the attributes of the specified user.

Parameters

UpdateUser $request

Return Value

Response

at line 270
Response updateOwn(UpdateOwnUser $request)

Updates the attributes of the own user.

Parameters

UpdateOwnUser $request

Return Value

Response

at line 333
User store(StoreUser $request)

Creates a new user.

Parameters

StoreUser $request

Return Value

User

at line 380
Response destroy(DestroyUser $request)

Removes the specified user.

Parameters

DestroyUser $request

Return Value

Response

at line 409
Response destroyOwn(DestroyOwnUser $request)

Removes the own user.

Parameters

DestroyOwnUser $request

Return Value

Response