Learner\Repositories\UserRepositoryInterface::restore PHP Method

restore() public method

Restore a user from trash.
public restore ( integer $id )
$id integer
    public function restore($id);

Usage Example

Ejemplo n.º 1
0
 /**
  * Restore the user.
  *
  * /users/restore/{id} put
  *
  * @param  integer $id
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function restoreUser($id)
 {
     $this->users->restore($id);
     return $this->responseJson(['message' => '恢复成功']);
 }