Property | Type | Description | |
---|---|---|---|
$users | Learner\Repositories\UserRepositoryInterface | User repository. |
Method | Description | |
---|---|---|
__construct ( Learner\Repositories\UserRepositoryInterface $users ) | Instance the UserRepositoryInterface. | |
activeUsers ( ) : Illuminate\Database\Eloquent\Collection | |
Get all active users. | |
deleteUser ( integer $id ) : Illuminate\Http\JsonResponse | Delete user from database. | |
notActiveUsers ( ) : Illuminate\Database\Eloquent\Collection | |
Find all not active users paginated. | |
removeToTrash ( integer $id ) : Illuminate\Http\JsonResponse | Remove user to trash. | |
restoreUser ( integer $id ) : Illuminate\Http\JsonResponse | Restore the user. | |
toggleUserActive ( integer $id ) : Illuminate\Http\JsonResponse | Toggle user active. | |
trashedUsers ( ) : Illuminate\Database\Eloquent\Collection | |
Find all users in trash paginated. |
public __construct ( Learner\Repositories\UserRepositoryInterface $users ) | ||
$users | Learner\Repositories\UserRepositoryInterface |
public activeUsers ( ) : Illuminate\Database\Eloquent\Collection | |
||
return | Illuminate\Database\Eloquent\Collection | |
public deleteUser ( integer $id ) : Illuminate\Http\JsonResponse | ||
$id | integer | |
return | Illuminate\Http\JsonResponse |
public notActiveUsers ( ) : Illuminate\Database\Eloquent\Collection | |
||
return | Illuminate\Database\Eloquent\Collection | |
public removeToTrash ( integer $id ) : Illuminate\Http\JsonResponse | ||
$id | integer | |
return | Illuminate\Http\JsonResponse |
public restoreUser ( integer $id ) : Illuminate\Http\JsonResponse | ||
$id | integer | |
return | Illuminate\Http\JsonResponse |
public toggleUserActive ( integer $id ) : Illuminate\Http\JsonResponse | ||
$id | integer | |
return | Illuminate\Http\JsonResponse |
public trashedUsers ( ) : Illuminate\Database\Eloquent\Collection | |
||
return | Illuminate\Database\Eloquent\Collection | |