class UserController extendsController

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

inControllerat line21
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

inControllerat line15
protectedRedirectResponse fuzzyRedirect()

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

Return Value

RedirectResponse

at line21
__construct()

Creates a new UserController instance.

at line62
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 line101
Response index(Request$request)

Shows a list of all users.

Parameters

Request $request

Return Value

Response

at line133
User show(int$id)

Shows the specified user.

Parameters

int $id

Return Value

User

at line167
User showOwn(Request$request)

Shows the requesting user.

Parameters

Request $request

Return Value

User

at line202
Response update(UpdateUser$request)

Updates the attributes of the specified user.

Parameters

UpdateUser $request

Return Value

Response

at line258
Response updateOwn(UpdateOwnUser$request)

Updates the attributes of the own user.

Parameters

UpdateOwnUser $request

Return Value

Response

at line325
User store(StoreUser$request)

Creates a new user.

Parameters

StoreUser $request

Return Value

User

at line372
Response destroy(DestroyUser$request)

Removes the specified user.

Parameters

DestroyUser $request

Return Value

Response

at line401
Response destroyOwn(DestroyOwnUser$request)

Removes the own user.

Parameters

DestroyOwnUser $request

Return Value

Response