\App\Repositories\EloquentUserRepositoryEloquent

Class UserRepositoryEloquent

Summary

Methods
Properties
Constants
model()
boot()
editUserRole()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

model()

model() : string

Specify Model class name

Returns

string

boot()

boot() 

Boot up the repository, pushing criteria

editUserRole()

editUserRole(  $user_id,   $role_id) : boolean

清除原有用户组,加入新的用户组

Parameters

$user_id

int 用户ID

$role_id

int 权限组ID

Returns

boolean