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
Collection
find(string $pattern)
Finds all users with firstnames or lastnames like $pattern
.
Returns the first 10 results.
at line 103
Collection
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 209
RedirectResponse|null
update(UpdateUser $request)
Updates the attributes of the specified user.
at line 270
RedirectResponse|null
updateOwn(UpdateOwnUser $request)
Updates the attributes of the own user.
at line 380
RedirectResponse|null
destroy(DestroyUser $request)
Removes the specified user.
at line 409
RedirectResponse|null
destroyOwn(DestroyOwnUser $request)
Removes the own user.