Owl\Repositories\UserRepositoryInterface::updateUser PHP 메소드

updateUser() 공개 메소드

Update a user information(username, email, role).
public updateUser ( integer $id, string $username, string $email, integer $role ) : Illuminate\Database\Eloquent\Model
$id integer
$username string
$email string
$role integer
리턴 Illuminate\Database\Eloquent\Model
    public function updateUser($id, $username, $email, $role);

Usage Example

예제 #1
0
파일: UserService.php 프로젝트: so1/owl
 /**
  * Update a user information(username, email).
  *
  * @param int     $id
  * @param string  $username
  * @param string  $email
  * @param int     $role$
  * @return \stdclass
  */
 public function update($id, $username, $email, $role)
 {
     return $this->userRepo->updateUser($id, $username, $email, $role);
 }