DashboardService
final class DashboardService
Supports admin dashboard operations.
Methods
static void
checkIfCurrentUser(Users $user, string $redirect = '')
Warns if admin user is attempting to view an area they should not be.
static array
static int
totalUserCountExceptCurrent()
Returns query number of users excluding current.
Details
at line 21
static void
checkIfCurrentUser(Users $user, string $redirect = '')
Warns if admin user is attempting to view an area they should not be.
at line 34
static array
paginateUsers(Pagination $pagination)
Returns list of paginated users.
at line 47
static int
totalUserCountExceptCurrent()
Returns query number of users excluding current.