PHP 클래스 Learner\Http\Controllers\Admin\UserController

상속: extends BaseController
파일 보기 프로젝트 열기: RryLee/learner.video

보호된 프로퍼티들

프로퍼티 타입 설명
$users Learner\Repositories\UserRepositoryInterface User repository.

공개 메소드들

메소드 설명
__construct ( Learner\Repositories\UserRepositoryInterface $users ) Instance the UserRepositoryInterface.
activeUsers ( ) : Illuminate\Database\Eloquent\Collection | User[] Get all active users.
deleteUser ( integer $id ) : Illuminate\Http\JsonResponse Delete user from database.
notActiveUsers ( ) : Illuminate\Database\Eloquent\Collection | User[] 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 | User[] Find all users in trash paginated.

메소드 상세

__construct() 공개 메소드

Instance the UserRepositoryInterface.
public __construct ( Learner\Repositories\UserRepositoryInterface $users )
$users Learner\Repositories\UserRepositoryInterface

activeUsers() 공개 메소드

admin/users get
public activeUsers ( ) : Illuminate\Database\Eloquent\Collection | User[]
리턴 Illuminate\Database\Eloquent\Collection | Learner\Models\User[]

deleteUser() 공개 메소드

admin/users/delete/{id} delete
public deleteUser ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
리턴 Illuminate\Http\JsonResponse

notActiveUsers() 공개 메소드

admin/users/notActive get
public notActiveUsers ( ) : Illuminate\Database\Eloquent\Collection | User[]
리턴 Illuminate\Database\Eloquent\Collection | Learner\Models\User[]

removeToTrash() 공개 메소드

admin/users/remove/{id} delete
public removeToTrash ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
리턴 Illuminate\Http\JsonResponse

restoreUser() 공개 메소드

users/restore/{id} put
public restoreUser ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
리턴 Illuminate\Http\JsonResponse

toggleUserActive() 공개 메소드

admin/users/toggleActive/{id} put
public toggleUserActive ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
리턴 Illuminate\Http\JsonResponse

trashedUsers() 공개 메소드

admin/users/trashed get
public trashedUsers ( ) : Illuminate\Database\Eloquent\Collection | User[]
리턴 Illuminate\Database\Eloquent\Collection | Learner\Models\User[]

프로퍼티 상세

$users 보호되어 있는 프로퍼티

User repository.
protected UserRepositoryInterface,Learner\Repositories $users
리턴 Learner\Repositories\UserRepositoryInterface