UserController
class UserController extends Controller
Traits
Methods
Determines if the request was done by an automated script (with API token or ajax).
Redirects to the _redirect URL, to a route or else back.
Creates a new UserController instance.
Finds all users with firstnames or lastnames like $pattern
.
Shows a list of all users.
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).
in
Controller at line 15
protected RedirectResponse
fuzzyRedirect()
Redirects to the _redirect URL, to a route or else back.
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.
at line 103
Response
index(Request $request)
Shows a list of all users.
at line 137
User
show(int $id)
Shows the specified user.
at line 173
User
showOwn(Request $request)
Shows the requesting user.
at line 208
Response
update(UpdateUser $request)
Updates the attributes of the specified user.
at line 263
Response
updateOwn(UpdateOwnUser $request)
Updates the attributes of the own user.
at line 373
Response
destroy(DestroyUser $request)
Removes the specified user.
at line 402
Response
destroyOwn(DestroyOwnUser $request)
Removes the own user.